All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [Patch] Fix typo in error output
@ 2009-01-29  9:09 Andre Prendel
  2009-01-29  9:45 ` Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: Andre Prendel @ 2009-01-29  9:09 UTC (permalink / raw)
  To: lm-sensors


Removed trailing semicolon in error string.

Signed-off-by: Andre Prendel <andre_prendel@gmx.de>
---

--- lm-sensors-dev/prog/sensors/main.c	2009-01-28 18:12:18.000000000 +0100
+++ my-lm-sensors/prog/sensors/main.c	2009-01-28 22:01:14.000000000 +0100
@@ -179,7 +179,7 @@ static int do_a_set(const sensors_chip_n
 
 	if ((err = sensors_do_chip_sets(name))) {
 		if (err = -SENSORS_ERR_KERNEL) {
-			fprintf(stderr, "%s: %s;\n",
+			fprintf(stderr, "%s: %s\n",
 				sprintf_chip_name(name),
 				sensors_strerror(err));
 			fprintf(stderr, "Run as root?\n");

_______________________________________________
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

* Re: [lm-sensors] [Patch] Fix typo in error output
  2009-01-29  9:09 [lm-sensors] [Patch] Fix typo in error output Andre Prendel
@ 2009-01-29  9:45 ` Jean Delvare
  0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2009-01-29  9:45 UTC (permalink / raw)
  To: lm-sensors

Hi Andre,

On Thu, 29 Jan 2009 10:09:08 +0100, Andre Prendel wrote:
> 
> Removed trailing semicolon in error string.
> 
> Signed-off-by: Andre Prendel <andre_prendel@gmx.de>
> ---
> 
> --- lm-sensors-dev/prog/sensors/main.c	2009-01-28 18:12:18.000000000 +0100
> +++ my-lm-sensors/prog/sensors/main.c	2009-01-28 22:01:14.000000000 +0100
> @@ -179,7 +179,7 @@ static int do_a_set(const sensors_chip_n
>  
>  	if ((err = sensors_do_chip_sets(name))) {
>  		if (err = -SENSORS_ERR_KERNEL) {
> -			fprintf(stderr, "%s: %s;\n",
> +			fprintf(stderr, "%s: %s\n",
>  				sprintf_chip_name(name),
>  				sensors_strerror(err));
>  			fprintf(stderr, "Run as root?\n");

I don't think this is a typo, the semi-colon was probably there on
purpose. But I don't like it much either, so let's get rid of it :)

Patch 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:[~2009-01-29  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29  9:09 [lm-sensors] [Patch] Fix typo in error output Andre Prendel
2009-01-29  9:45 ` 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.