]> Git Repo - linux.git/commitdiff
staging: gpib: fix prefixing 0x with decimal output
authorAjith P V <[email protected]>
Tue, 14 Jan 2025 12:16:56 +0000 (17:46 +0530)
committerGreg Kroah-Hartman <[email protected]>
Wed, 15 Jan 2025 17:37:40 +0000 (18:37 +0100)
* 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]>
drivers/staging/gpib/cb7210/cb7210.c

index ae373005389b3cca5caa2d96461a2646b57a07bd..4d22f647a453fbedb34558402ad3cac54a1b5708 100644 (file)
@@ -1041,7 +1041,7 @@ int cb_isa_attach(gpib_board_t *board, const gpib_board_config_t *config)
        cb_priv = board->private_data;
        nec_priv = &cb_priv->nec7210_priv;
        if (!request_region(config->ibbase, cb7210_iosize, "cb7210")) {
-               pr_err("gpib: ioports starting at 0x%u are already in use\n", config->ibbase);
+               pr_err("gpib: ioports starting at 0x%x are already in use\n", config->ibbase);
                return -EIO;
        }
        nec_priv->iobase = config->ibbase;
This page took 0.057453 seconds and 4 git commands to generate.