We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e9363 commit b6621b1Copy full SHA for b6621b1
tools/gpio/gpio-event-mon.c
@@ -69,14 +69,14 @@ int monitor_device(const char *device_name,
69
}
70
71
if (num_lines == 1) {
72
- fprintf(stdout, "Monitoring line %d on %s\n", lines[0], device_name);
+ fprintf(stdout, "Monitoring line %u on %s\n", lines[0], device_name);
73
fprintf(stdout, "Initial line value: %d\n",
74
gpiotools_test_bit(values.bits, 0));
75
} else {
76
- fprintf(stdout, "Monitoring lines %d", lines[0]);
+ fprintf(stdout, "Monitoring lines %u", lines[0]);
77
for (i = 1; i < num_lines - 1; i++)
78
- fprintf(stdout, ", %d", lines[i]);
79
- fprintf(stdout, " and %d on %s\n", lines[i], device_name);
+ fprintf(stdout, ", %u", lines[i]);
+ fprintf(stdout, " and %u on %s\n", lines[i], device_name);
80
fprintf(stdout, "Initial line values: %d",
81
82
0 commit comments