All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH]: coretemp: fix cpu model output
@ 2010-03-09 14:58 Prarit Bhargava
  2010-03-09 17:10 ` Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: Prarit Bhargava @ 2010-03-09 14:58 UTC (permalink / raw)
  To: lm-sensors

Avoid hex and decimal confusion when printing out the cpu model.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>

diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 2d7bcee..f5f975b 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -466,7 +466,7 @@ static int __init coretemp_init(void)
 			   family 6 CPU */
 			if ((c->x86 = 0x6) && (c->x86_model > 0xf))
 				printk(KERN_WARNING DRVNAME ": Unknown CPU "
-					"model %x\n", c->x86_model);
+					"model 0x%x\n", c->x86_model);
 			continue;
 		}
 

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [lm-sensors] [PATCH]: coretemp: fix cpu model output
  2010-03-09 14:58 [lm-sensors] [PATCH]: coretemp: fix cpu model output Prarit Bhargava
@ 2010-03-09 17:10 ` Jean Delvare
  0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2010-03-09 17:10 UTC (permalink / raw)
  To: lm-sensors

On Tue, 9 Mar 2010 09:58:36 -0500, Prarit Bhargava wrote:
> Avoid hex and decimal confusion when printing out the cpu model.
> 
> Signed-off-by: Prarit Bhargava <prarit@redhat.com>
> 
> diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
> index 2d7bcee..f5f975b 100644
> --- a/drivers/hwmon/coretemp.c
> +++ b/drivers/hwmon/coretemp.c
> @@ -466,7 +466,7 @@ static int __init coretemp_init(void)
>  			   family 6 CPU */
>  			if ((c->x86 = 0x6) && (c->x86_model > 0xf))
>  				printk(KERN_WARNING DRVNAME ": Unknown CPU "
> -					"model %x\n", c->x86_model);
> +					"model 0x%x\n", c->x86_model);
>  			continue;
>  		}
>  

Applied, thanks!

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-09 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-09 14:58 [lm-sensors] [PATCH]: coretemp: fix cpu model output Prarit Bhargava
2010-03-09 17:10 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.