diff options
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/kmstouch.cpp | 6 | ||||
| -rw-r--r-- | utils/kmsview.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/utils/kmstouch.cpp b/utils/kmstouch.cpp index 8afcee5..f4d4c2a 100644 --- a/utils/kmstouch.cpp +++ b/utils/kmstouch.cpp @@ -64,7 +64,7 @@ static void print_code_bits(struct libevdev* dev, unsigned int type, unsigned in if (!libevdev_has_event_code(dev, type, i)) continue; - printf(" Event code %i (%s)\n", i, libevdev_event_code_get_name(type, i)); + printf(" Event code %u (%s)\n", i, libevdev_event_code_get_name(type, i)); if (type == EV_ABS) print_abs_bits(dev, i); } @@ -78,7 +78,7 @@ static void print_bits(struct libevdev* dev) if (!libevdev_has_event_type(dev, i)) continue; - printf(" Event type %d (%s)\n", i, libevdev_event_type_get_name(i)); + printf(" Event type %u (%s)\n", i, libevdev_event_type_get_name(i)); switch (i) { case EV_KEY: @@ -120,7 +120,7 @@ static void print_props(struct libevdev* dev) if (!libevdev_has_property(dev, i)) continue; - printf(" Property type %d (%s)\n", i, libevdev_property_get_name(i)); + printf(" Property type %u (%s)\n", i, libevdev_property_get_name(i)); } } diff --git a/utils/kmsview.cpp b/utils/kmsview.cpp index 4b60bb8..7cee024 100644 --- a/utils/kmsview.cpp +++ b/utils/kmsview.cpp @@ -99,7 +99,7 @@ int main(int argc, char** argv) printf("file size %u, frame size %u, frames %u\n", fsize, frame_size, num_frames); for (unsigned i = 0; i < num_frames; ++i) { - printf("frame %d", i); + printf("frame %u", i); fflush(stdout); read_frame(is, fb, crtc, plane); if (!time) { |
