use an appropriate specifier for u_long (%lx) in printf

This commit is contained in:
kochi 2006-09-21 09:59:45 +00:00
parent 6fa19ae830
commit 1d1bdfa635
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.1 2006/04/07 14:21:32 cherry Exp $ */
/* $NetBSD: main.c,v 1.2 2006/09/21 09:59:45 kochi Exp $ */
/*-
* Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
@ -127,7 +127,7 @@ main(int argc, CHAR16 *argv[])
/* Get our loaded image protocol interface structure. */
BS->HandleProtocol(IH, &imgid, (VOID**)&img);
printf("Image base: 0x%x\n", (u_long)img->ImageBase);
printf("Image base: 0lx%x\n", (u_long)img->ImageBase);
printf("\n");
printf("%s, Revision %s\n", bootprog_name, bootprog_rev);