2
0
Эх сурвалжийг харах

Update musializer.c : Add newline at end of errors

The lack of newline sometime messes up the prompt, and also it looks better.
AmalIrfan 2 жил өмнө
parent
commit
c829cbd511
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      src/musializer.c

+ 2 - 2
src/musializer.c

@@ -32,14 +32,14 @@ bool reload_libplug(void)
 
     libplug = dlopen(libplug_file_name, RTLD_NOW);
     if (libplug == NULL) {
-        fprintf(stderr, "ERROR: could not load %s: %s", libplug_file_name, dlerror());
+        fprintf(stderr, "ERROR: could not load %s: %s\n", libplug_file_name, dlerror());
         return false;
     }
 
     #define PLUG(name, ...) \
         name = dlsym(libplug, #name); \
         if (name == NULL) { \
-            fprintf(stderr, "ERROR: could not find %s symbol in %s: %s", \
+            fprintf(stderr, "ERROR: could not find %s symbol in %s: %s\n", \
                     #name, libplug_file_name, dlerror()); \
             return false; \
         }