From 0a0b8f22aa45e7c87d86a0f0c54f1878b9c80cae Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 22 Apr 2006 13:56:16 +0000 Subject: (svn r4529) - Codechange: Use proper naming for hex numbers in debug prints eg. 0xF3A6. Use fixed lengths where applicable (newgrf). Unfortunately '%#X' is unusable since it gives 0XFF3 and '%#x' gives 0xff3 while we want 0xFF3 :P --- oldloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oldloader.c') diff --git a/oldloader.c b/oldloader.c index 644d76be8..59fffc7da 100644 --- a/oldloader.c +++ b/oldloader.c @@ -211,7 +211,7 @@ static bool LoadChunk(LoadgameState *ls, void *base, const OldChunks *chunks) break; case OC_ASSERT: - DEBUG(oldloader, 4)("[OldLoader] Assert point: %x / %x", ls->total_read, chunk->offset + _bump_assert_value); + DEBUG(oldloader, 4)("[OldLoader] Assert point: 0x%X / 0x%X", ls->total_read, chunk->offset + _bump_assert_value); if (ls->total_read != chunk->offset + _bump_assert_value) ls->failed = true; default: break; } -- cgit v1.2.3-54-g00ecf