summaryrefslogtreecommitdiff
path: root/src/bootchart/log.c
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2013-01-10 11:34:58 -0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-01-10 15:21:42 -0500
commit53f5329f7aa321d72847cd7f8f28da9a7db80331 (patch)
tree851d818096a926ae99aa1d4a86a9889726528f55 /src/bootchart/log.c
parentdb91ea32aa223d1b087d99811226a9c59a1bb281 (diff)
bootchart: Convert !strcmp usage to streq
Diffstat (limited to 'src/bootchart/log.c')
-rw-r--r--src/bootchart/log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bootchart/log.c b/src/bootchart/log.c
index 78f0cab178..c697121814 100644
--- a/src/bootchart/log.c
+++ b/src/bootchart/log.c
@@ -26,6 +26,7 @@
#include "bootchart.h"
+#include "util.h"
/*
* Alloc a static 4k buffer for stdio - primarily used to increase
@@ -125,9 +126,9 @@ void log_sample(int sample)
while (m) {
if (sscanf(m, "%s %s", key, val) < 2)
goto vmstat_next;
- if (!strcmp(key, "pgpgin"))
+ if (streq(key, "pgpgin"))
blockstat[sample].bi = atoi(val);
- if (!strcmp(key, "pgpgout")) {
+ if (streq(key, "pgpgout")) {
blockstat[sample].bo = atoi(val);
break;
}