Skip to contentSkip to conversation

Fix typo in error output

PATCH In review Andre Prendel 2 participants 2 messages Jan 29, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix typo in error output

Removed trailing semicolon in error string.

---

prog/sensors/main.c +1 -1
@@ -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
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

Hi Andre,

Quoted 9 lines · Andre Prendel

Removed trailing semicolon in error string.

---

prog/sensors/main.c static int do_a_set(const sensors_chip_n · line 185

Quoted 8 lines
prog/sensors/main.c +1 -1
@@ -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.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors