From d61ca79ff48393d9f47c80c7ae52c51b51d91d0f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 23 Dec 2015 15:42:35 -0500 Subject: block: Report drive->sectors using "%u" instead of "%d" The sector count is a 64bit number that is often reported as a 32bit number (due to limitations in dprintf). Consistently use "%u" reporting to avoid confusing negative numbers. Reported-by: Tobias Diedrich Signed-off-by: Kevin O'Connor --- src/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/block.c') diff --git a/src/block.c b/src/block.c index 1762e2a3..b4530fc8 100644 --- a/src/block.c +++ b/src/block.c @@ -162,7 +162,7 @@ setup_translation(struct drive_s *drive) // clip to 1024 cylinders in lchs if (cylinders > 1024) cylinders = 1024; - dprintf(1, "drive %p: PCHS=%u/%d/%d translation=%s LCHS=%d/%d/%d s=%d\n" + dprintf(1, "drive %p: PCHS=%u/%d/%d translation=%s LCHS=%d/%d/%d s=%u\n" , drive , drive->pchs.cylinder, drive->pchs.head, drive->pchs.sector , desc -- cgit