Commit 61b8dae6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix adaptec diagnostics for ppc64

The return type of sizeof() is size_t.  On many architectrues size_t is
unsigned long, and may not be printed with %d.  Use %Zu instead.
parent 758d4c33
......@@ -4708,8 +4708,8 @@ ahc_init(struct ahc_softc *ahc)
#ifdef AHC_DEBUG
if (ahc_debug & AHC_SHOW_MISC) {
printf("%s: hardware scb %d bytes; kernel scb %d bytes; "
"ahc_dma %d bytes\n",
printf("%s: hardware scb %Zu bytes; kernel scb %Zu bytes; "
"ahc_dma %Zu bytes\n",
ahc_name(ahc),
sizeof(struct hardware_scb),
sizeof(struct scb),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment