Skip to content

Commit c41e21d

Browse files
Tom Rixgregkh
authored andcommitted
sgi-xp: remove h from printk format specifier
This change fixes the checkpatch warning described in this commit commit cbacb5a ("docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]") Standard integer promotion is already done and %hx and %hhx is useless so do not encourage the use of %hh[xudi] or %h[xudi]. Reviewed-By: Steve Wahl <steve.wahl@hpe.com> Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20210123160003.1777766-1-trix@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 26c2e92 commit c41e21d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/misc/sgi-xp/xpnet.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg)
208208
} else {
209209
dst = (void *)((u64)skb->data & ~(L1_CACHE_BYTES - 1));
210210
dev_dbg(xpnet, "transferring buffer to the skb->data area;\n\t"
211-
"xp_remote_memcpy(0x%p, 0x%p, %hu)\n", dst,
211+
"xp_remote_memcpy(0x%p, 0x%p, %u)\n", dst,
212212
(void *)msg->buf_pa, msg->size);
213213

214214
ret = xp_remote_memcpy(xp_pa(dst), msg->buf_pa, msg->size);
@@ -218,7 +218,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg)
218218
* !!! appears in_use and we can't just call
219219
* !!! dev_kfree_skb.
220220
*/
221-
dev_err(xpnet, "xp_remote_memcpy(0x%p, 0x%p, 0x%hx) "
221+
dev_err(xpnet, "xp_remote_memcpy(0x%p, 0x%p, 0x%x) "
222222
"returned error=0x%x\n", dst,
223223
(void *)msg->buf_pa, msg->size, ret);
224224

0 commit comments

Comments
 (0)