Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1509297 > unrolled thread

[PATCH 2/5] block: DAC960: print a hex number after a 0x prefix

Started byUwe Kleine-König <u.kleine-koenig@pengutronix.de>
First post2016-10-26 15:00 +0200
Last post2016-10-26 15:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/5] block: DAC960: print a hex number after a 0x prefix Uwe Kleine-König          <u.kleine-koenig@pengutronix.de> - 2016-10-26 15:00 +0200

#1509297 — [PATCH 2/5] block: DAC960: print a hex number after a 0x prefix

FromUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date2016-10-26 15:00 +0200
Subject[PATCH 2/5] block: DAC960: print a hex number after a 0x prefix
Message-ID<swvYf-3Qk-49@gated-at.bofh.it>
It makes the message hard to interpret correctly if a base 10 number is
prefixed by 0x. So change to a hex number.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
Hello,

get_maintainer.pl didn't give me a maintainer, so I assumed it's akpm :-)

Uwe

 drivers/block/DAC960.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c
index 811e11c82f32..0809cda93cc0 100644
--- a/drivers/block/DAC960.c
+++ b/drivers/block/DAC960.c
@@ -2954,7 +2954,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device,
 	case DAC960_PD_Controller:
 	  if (!request_region(Controller->IO_Address, 0x80,
 			      Controller->FullModelName)) {
-		DAC960_Error("IO port 0x%d busy for Controller at\n",
+		DAC960_Error("IO port 0x%lx busy for Controller at\n",
 			     Controller, Controller->IO_Address);
 		goto Failure;
 	  }
@@ -2990,7 +2990,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device,
 	case DAC960_P_Controller:
 	  if (!request_region(Controller->IO_Address, 0x80,
 			      Controller->FullModelName)){
-		DAC960_Error("IO port 0x%d busy for Controller at\n",
+		DAC960_Error("IO port 0x%lx busy for Controller at\n",
 		   	     Controller, Controller->IO_Address);
 		goto Failure;
 	  }
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web