mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: dlopener: Format code
That code formatting looks awful
This commit is contained in:
parent
4b2d2bb0b3
commit
ae1c3087bf
1 changed files with 18 additions and 19 deletions
|
|
@ -2,13 +2,12 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[]) {
|
||||||
{
|
|
||||||
const char *path;
|
const char *path;
|
||||||
int status = -EINVAL;
|
int status = -EINVAL;
|
||||||
void *handle = NULL;
|
void *handle = NULL;
|
||||||
|
|
||||||
if(argc <= 1) {
|
if (argc <= 1) {
|
||||||
printf("Please specify a module to load!\n");
|
printf("Please specify a module to load!\n");
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
@ -18,10 +17,10 @@ int main(int argc, char *argv[])
|
||||||
handle = dlopen(path, RTLD_NOW);
|
handle = dlopen(path, RTLD_NOW);
|
||||||
if (handle == NULL) {
|
if (handle == NULL) {
|
||||||
char const *err_str = dlerror();
|
char const *err_str = dlerror();
|
||||||
printf("load: module=%s\n%s\n", path, err_str?err_str:"unknown");
|
printf("load: module=%s\n%s\n", path, err_str ? err_str : "unknown");
|
||||||
status = -EINVAL;
|
status = -EINVAL;
|
||||||
} else {
|
} else {
|
||||||
printf("load: module=%s %s\n", path,"Success!");
|
printf("load: module=%s %s\n", path, "Success!");
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue