Skip to content
Snippets Groups Projects
Commit f3609473 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

scsi: Use correct printf() format string for uintptr_t


Use the inttypes header file to provide this.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 6bcb8ade
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
*/ */
#include <common.h> #include <common.h>
#include <command.h> #include <command.h>
#include <inttypes.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <scsi.h> #include <scsi.h>
#include <image.h> #include <image.h>
...@@ -391,7 +392,7 @@ static ulong scsi_read(int device, lbaint_t blknr, lbaint_t blkcnt, ...@@ -391,7 +392,7 @@ static ulong scsi_read(int device, lbaint_t blknr, lbaint_t blkcnt,
blks=0; blks=0;
} }
debug("scsi_read_ext: startblk " LBAF debug("scsi_read_ext: startblk " LBAF
", blccnt %x buffer %lx\n", ", blccnt %x buffer %" PRIXPTR "\n",
start, smallblks, buf_addr); start, smallblks, buf_addr);
if (scsi_exec(pccb) != true) { if (scsi_exec(pccb) != true) {
scsi_print_error(pccb); scsi_print_error(pccb);
...@@ -401,7 +402,7 @@ static ulong scsi_read(int device, lbaint_t blknr, lbaint_t blkcnt, ...@@ -401,7 +402,7 @@ static ulong scsi_read(int device, lbaint_t blknr, lbaint_t blkcnt,
buf_addr+=pccb->datalen; buf_addr+=pccb->datalen;
} while(blks!=0); } while(blks!=0);
debug("scsi_read_ext: end startblk " LBAF debug("scsi_read_ext: end startblk " LBAF
", blccnt %x buffer %lx\n", start, smallblks, buf_addr); ", blccnt %x buffer %" PRIXPTR "\n", start, smallblks, buf_addr);
return(blkcnt); return(blkcnt);
} }
...@@ -445,7 +446,7 @@ static ulong scsi_write(int device, lbaint_t blknr, ...@@ -445,7 +446,7 @@ static ulong scsi_write(int device, lbaint_t blknr,
start += blks; start += blks;
blks = 0; blks = 0;
} }
debug("%s: startblk " LBAF ", blccnt %x buffer %lx\n", debug("%s: startblk " LBAF ", blccnt %x buffer %" PRIXPTR "\n",
__func__, start, smallblks, buf_addr); __func__, start, smallblks, buf_addr);
if (scsi_exec(pccb) != true) { if (scsi_exec(pccb) != true) {
scsi_print_error(pccb); scsi_print_error(pccb);
...@@ -454,7 +455,7 @@ static ulong scsi_write(int device, lbaint_t blknr, ...@@ -454,7 +455,7 @@ static ulong scsi_write(int device, lbaint_t blknr,
} }
buf_addr += pccb->datalen; buf_addr += pccb->datalen;
} while (blks != 0); } while (blks != 0);
debug("%s: end startblk " LBAF ", blccnt %x buffer %lx\n", debug("%s: end startblk " LBAF ", blccnt %x buffer %" PRIXPTR "\n",
__func__, start, smallblks, buf_addr); __func__, start, smallblks, buf_addr);
return blkcnt; return blkcnt;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment