Commit e2888a7fa7f8d23396c4b25ea763fe1f38851b3d

Authored by Bin Meng
Committed by Tom Rini
1 parent 723b43daec

cmd: blk: Use LBAFU in the common block command

There is already a macro LBAFU to aid formatted print with lbaint_t
variables. Let's use it in the common block command codes.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Showing 1 changed file with 4 additions and 6 deletions Side-by-side Diff

... ... @@ -68,9 +68,8 @@
68 68 ulong cnt = simple_strtoul(argv[4], NULL, 16);
69 69 ulong n;
70 70  
71   - printf("\n%s read: device %d block # %lld, count %ld ... ",
72   - if_name, *cur_devnump, (unsigned long long)blk,
73   - cnt);
  71 + printf("\n%s read: device %d block # "LBAFU", count %lu ... ",
  72 + if_name, *cur_devnump, blk, cnt);
74 73  
75 74 n = blk_read_devnum(if_type, *cur_devnump, blk, cnt,
76 75 (ulong *)addr);
... ... @@ -84,9 +83,8 @@
84 83 ulong cnt = simple_strtoul(argv[4], NULL, 16);
85 84 ulong n;
86 85  
87   - printf("\n%s write: device %d block # %lld, count %ld ... ",
88   - if_name, *cur_devnump, (unsigned long long)blk,
89   - cnt);
  86 + printf("\n%s write: device %d block # "LBAFU", count %lu ... ",
  87 + if_name, *cur_devnump, blk, cnt);
90 88  
91 89 n = blk_write_devnum(if_type, *cur_devnump, blk, cnt,
92 90 (ulong *)addr);