]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/shell/ucw-logger.c
Merge branch 'master' into table
[libucw.git] / ucw / shell / ucw-logger.c
index fba6f5deefd0d1ace2cb8a9dd1d799f1e17aa91e..1ef5f685f2dab0dd81c30bf7b4b86c0341d12351 100644 (file)
@@ -30,21 +30,21 @@ main(int argc, char **argv)
   else
     log_init(argv[1]);
 
-  uns level = 0;
+  uint level = 0;
   while (level < L_MAX && LS_LEVEL_LETTER(level) != argv[2][0])
     level++;
   if (level >= L_MAX)
     die("Unknown logging level `%s'", argv[2]);
 
   if (argc > 3)
-    msg(level, argv[3]);
+    msg(level, "%s", argv[3]);
   else
     while (fgets(buf, sizeof(buf), stdin))
       {
        c = strchr(buf, '\n');
        if (c)
          *c = 0;
-       msg(level, buf);
+       msg(level, "%s", buf);
       }
   return 0;
 }