]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
dfu: Fix Specify correct parameter for sizeof type
authorMichal Simek <michal.simek@xilinx.com>
Wed, 28 Oct 2015 12:04:30 +0000 (13:04 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 28 Oct 2015 16:23:46 +0000 (17:23 +0100)
Warning log:
drivers/dfu/dfu.c: In function ‘dfu_write’:
drivers/dfu/dfu.c:201:2: warning: format ‘%x’ expects argument of type
‘unsigned int’, but argument 8 has type ‘long int’ [-Wformat=]
  debug("%s: name: %s buf: 0x%p size: 0x%x p_num: 0x%x offset: 0x%llx
bufoffset: 0x%x\n",
  ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/dfu/dfu.c

index 0560afa9ffa500b1d49a5c911268d8c6bd1070e0..ee8a85ebb34dc2f7f3e0c950b934e67bbfb51659 100644 (file)
@@ -198,7 +198,7 @@ int dfu_write(struct dfu_entity *dfu, void *buf, int size, int blk_seq_num)
 {
        int ret;
 
-       debug("%s: name: %s buf: 0x%p size: 0x%x p_num: 0x%x offset: 0x%llx bufoffset: 0x%x\n",
+       debug("%s: name: %s buf: 0x%p size: 0x%x p_num: 0x%x offset: 0x%llx bufoffset: 0x%zx\n",
              __func__, dfu->name, buf, size, blk_seq_num, dfu->offset,
              dfu->i_buf - dfu->i_buf_start);