From ae1c3087bf1a5c74fd275a22c520b2cd62d36fea Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Sat, 17 Sep 2022 19:04:18 +0900 Subject: [PATCH] universal7885: dlopener: Format code That code formatting looks awful --- .../debug-tools/dlopener/dlopener.c | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/universal7885-common/debug-tools/dlopener/dlopener.c b/universal7885-common/debug-tools/dlopener/dlopener.c index d063566..dcf5105 100644 --- a/universal7885-common/debug-tools/dlopener/dlopener.c +++ b/universal7885-common/debug-tools/dlopener/dlopener.c @@ -2,27 +2,26 @@ #include #include -int main(int argc, char *argv[]) -{ - const char *path; - int status = -EINVAL; - void *handle = NULL; - - if(argc <= 1) { - printf("Please specify a module to load!\n"); - return status; - } - - path = argv[1]; - - handle = dlopen(path, RTLD_NOW); - if (handle == NULL) { - char const *err_str = dlerror(); - printf("load: module=%s\n%s\n", path, err_str?err_str:"unknown"); - status = -EINVAL; - } else { - printf("load: module=%s %s\n", path,"Success!"); - } +int main(int argc, char *argv[]) { + const char *path; + int status = -EINVAL; + void *handle = NULL; + if (argc <= 1) { + printf("Please specify a module to load!\n"); return status; + } + + path = argv[1]; + + handle = dlopen(path, RTLD_NOW); + if (handle == NULL) { + char const *err_str = dlerror(); + printf("load: module=%s\n%s\n", path, err_str ? err_str : "unknown"); + status = -EINVAL; + } else { + printf("load: module=%s %s\n", path, "Success!"); + } + + return status; }