bin/screenmode: Fix -Wformat=
Change-Id: Ide67c285a064c8e1111e1522be2946f69a5bcfc6 Reviewed-on: https://review.haiku-os.org/c/1512 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
e98c206263
commit
6ba31e25d7
@@ -66,7 +66,7 @@ print_mode(const display_mode& displayMode, const screen_mode& mode)
|
|||||||
{
|
{
|
||||||
const display_timing& timing = displayMode.timing;
|
const display_timing& timing = displayMode.timing;
|
||||||
|
|
||||||
printf("%lu %u %u %u %u %u %u %u %u ", timing.pixel_clock / 1000,
|
printf("%" B_PRIu32 " %u %u %u %u %u %u %u %u ", timing.pixel_clock / 1000,
|
||||||
timing.h_display, timing.h_sync_start, timing.h_sync_end,
|
timing.h_display, timing.h_sync_start, timing.h_sync_end,
|
||||||
timing.h_total, timing.v_display, timing.v_sync_start,
|
timing.h_total, timing.v_display, timing.v_sync_start,
|
||||||
timing.v_sync_end, timing.v_total);
|
timing.v_sync_end, timing.v_total);
|
||||||
@@ -78,7 +78,7 @@ print_mode(const display_mode& displayMode, const screen_mode& mode)
|
|||||||
printf(" +VSync");
|
printf(" +VSync");
|
||||||
if ((timing.flags & B_TIMING_INTERLACED) != 0)
|
if ((timing.flags & B_TIMING_INTERLACED) != 0)
|
||||||
printf(" Interlace");
|
printf(" Interlace");
|
||||||
printf(" %lu\n", mode.BitsPerPixel());
|
printf(" %" B_PRId32 "\n", mode.BitsPerPixel());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -355,9 +355,13 @@ main(int argc, char** argv)
|
|||||||
screenMode.Revert();
|
screenMode.Revert();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "%s: Could not set screen mode %ldx%ldx%ld: %s\n",
|
fprintf(stderr,
|
||||||
kProgramName, newMode.width, newMode.height, newMode.BitsPerPixel(),
|
"%s: Could not set screen mode "
|
||||||
strerror(status));
|
"%" B_PRId32 "x%" B_PRId32 "x%" B_PRId32 ": "
|
||||||
|
"%s\n",
|
||||||
|
kProgramName,
|
||||||
|
newMode.width, newMode.height, newMode.BitsPerPixel(),
|
||||||
|
strerror(status));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user