[BATTERY] Separate status flags with space, not comma

David Woodhouse dwmw2 at infradead.org
Tue Nov 7 22:38:26 EST 2006


Commit:     b4d724896650ef3998b5f13a0b93e1c10522a4b9
Parent:     ed23611d8ed5df17d755afd88b9ed41763d92568
commit b4d724896650ef3998b5f13a0b93e1c10522a4b9
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Wed Oct 25 15:07:34 2006 +0300
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Oct 25 15:07:34 2006 +0300

    [BATTERY] Separate status flags with space, not comma
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/battery/battery-class.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/battery/battery-class.c b/drivers/battery/battery-class.c
index 64e7001..63ba036 100644
--- a/drivers/battery/battery-class.c
+++ b/drivers/battery/battery-class.c
@@ -36,25 +36,25 @@ ssize_t battery_attribute_show_status(ch
 		sprintf(buf, "absent");
 
 	if (status & BAT_STAT_LOW)
-		strcat(buf, ",low");
+		strcat(buf, " low");
 
 	if (status & BAT_STAT_FULL)
-		strcat(buf, ",full");
+		strcat(buf, " full");
 
 	if (status & BAT_STAT_CHARGING)
-		strcat(buf, ",charging");
+		strcat(buf, " charging");
 
 	if (status & BAT_STAT_DISCHARGING)
-		strcat(buf, ",discharging");
+		strcat(buf, " discharging");
 
 	if (status & BAT_STAT_OVERTEMP)
-		strcat(buf, ",overtemp");
+		strcat(buf, " overtemp");
 
 	if (status & BAT_STAT_CRITICAL)
-		strcat(buf, ",critical");
+		strcat(buf, " critical");
 
 	if (status & BAT_STAT_CHARGE_DONE)
-		strcat(buf, ",charge-done");
+		strcat(buf, " charge-done");
 
 	strcat(buf, "\n");
 	ret = strlen(buf) + 1;


More information about the Commits-kernel mailing list