]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: gpib: fix prefixing 0x with decimal output
authorAjith P V <ajithpv.linux@gmail.com>
Wed, 22 Jan 2025 07:55:44 +0000 (13:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Feb 2025 15:08:20 +0000 (16:08 +0100)
- pr_err() of pc2a_common_attach() in pc2_gpib uses 0x%d.
- 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 <ajithpv.linux@gmail.com>
Link: https://lore.kernel.org/r/20250122075545.33146-1-ajithpv.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/pc2/pc2_gpib.c

index c0b07cb63d9aca43652f5f67451b4e88bd3dea9f..6a1c0cb1d0ed2b0af2c7e30993406999027c088c 100644 (file)
@@ -505,7 +505,7 @@ static int pc2a_common_attach(gpib_board_t *board, const gpib_board_config_t *co
        case 0x62e1:
                break;
        default:
-               pr_err("PCIIa base range invalid, must be one of 0x[0246]2e1, but is 0x%d\n",
+               pr_err("PCIIa base range invalid, must be one of 0x[0246]2e1, but is 0x%x\n",
                       config->ibbase);
                return -1;
        }