Skip to contentSkip to conversation

staging: gpib: fix prefixing 0x with decimal output

PATCH New Ajith P V 1 participant 1 message Jan 22, 2025 Staging

lore
Share & tools
lore

Ajith P V

author
#0 lore raw

PATCH 1/1 staging: gpib: fix prefixing 0x with decimal output

- 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

---
 drivers/staging/gpib/pc2/pc2_gpib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gpib/pc2/pc2_gpib.c +1 -1
index c0b07cb63d9a..6a1c0cb1d0ed 100644
@@ -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;
 	}
Signature · 1 line
2.43.0