Skip to content

Commit d3fbbfa

Browse files
Ajith P Vgregkh
authored andcommitted
staging: gpib: fix prefixing 0x with decimal output
* pr_err() of request_region() in cb7210 uses 0x%u which is defective. * The config->ibbase is of u32 and correct prefix is 0x%x. * This error reported by checkpatch with below message: ERROR: Prefixing 0x with decimal output is defective Signed-off-by: Ajith P V <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3e2bcc1 commit d3fbbfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/gpib/cb7210/cb7210.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ int cb_isa_attach(gpib_board_t *board, const gpib_board_config_t *config)
10411041
cb_priv = board->private_data;
10421042
nec_priv = &cb_priv->nec7210_priv;
10431043
if (!request_region(config->ibbase, cb7210_iosize, "cb7210")) {
1044-
pr_err("gpib: ioports starting at 0x%u are already in use\n", config->ibbase);
1044+
pr_err("gpib: ioports starting at 0x%x are already in use\n", config->ibbase);
10451045
return -EIO;
10461046
}
10471047
nec_priv->iobase = config->ibbase;

0 commit comments

Comments
 (0)