Преглед изворни кода

check_load.c: Fix clang format warning

See,
check_load.c:163:56: warning: format specifies type 'char *' but the argument
      has type 'int' [-Wformat]
  ...printf (_("could not parse load from uptime: %s\n"), result, PATH_TO_UPT...
                                                  ~~      ^~~~~~
                                                  %d
check_load.c:163:64: warning: data argument not used by format string
      [-Wformat-extra-args]
  ...printf (_("could not parse load from uptime: %s\n"), result, PATH_TO_UPT...
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~           ^
../config.h:1909:24: note: expanded from macro 'PATH_TO_UPTIME'
                       ^
2 warnings generated.
Mario Trangoni пре 7 година
родитељ
комит
09a1cf74d0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins/check_load.c

+ 1 - 1
plugins/check_load.c

@@ -160,7 +160,7 @@ main (int argc, char **argv)
 	    sscanf (input_buffer, "%*[^l]load averages: %lf, %lf, %lf", &la1, &la5, &la15);
     }
     else {
-		printf (_("could not parse load from uptime: %s\n"), result, PATH_TO_UPTIME);
+		printf (_("could not parse load %d from uptime: %s\n"), result, PATH_TO_UPTIME);
 		return STATE_UNKNOWN;
     }