Skip to content

Commit fe6340b

Browse files
dpenklermehmetb0
authored andcommitted
staging: gpib: Fix pr_err format warning
BugLink: https://bugs.launchpad.net/bugs/2107212 [ Upstream commit 03ec050 ] This patch fixes the following compile warning: drivers/staging/gpib/hp_82341/hp_82341.c: In function 'hp_82341_attach': ./include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u32' {aka 'unsigned int'} [-Wformat=] It was introduced in commit baf8855 ("staging: gpib: fix address space mixup") but was not detected as the build of the driver depended on BROKEN. Fixes: baf8855 ("staging: gpib: fix address space mixup") Signed-off-by: Dave Penkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Manuel Diewald <[email protected]> Signed-off-by: Timo Aaltonen <[email protected]>
1 parent 43e6482 commit fe6340b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/gpib/hp_82341/hp_82341.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ int hp_82341_attach(gpib_board_t *board, const gpib_board_config_t *config)
718718
for (i = 0; i < hp_82341_num_io_regions; ++i) {
719719
start_addr = iobase + i * hp_priv->io_region_offset;
720720
if (!request_region(start_addr, hp_82341_region_iosize, "hp_82341")) {
721-
pr_err("hp_82341: failed to allocate io ports 0x%lx-0x%lx\n",
721+
pr_err("hp_82341: failed to allocate io ports 0x%x-0x%x\n",
722722
start_addr,
723723
start_addr + hp_82341_region_iosize - 1);
724724
return -EIO;

0 commit comments

Comments
 (0)