From 039958632036808f9baa207e72b9827fa97b7a10 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 2 Apr 2015 13:24:30 +0200 Subject: bootchart: switch to log_* helpers Let the helper functions take care of the string message output. --- src/bootchart/svg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bootchart/svg.c') diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 54129159ac..8c8fab941d 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -186,7 +186,7 @@ static void svg_title(const char *build) { f = fdopen(fd, "r"); if (f) { if (!fgets(model, 255, f)) - fprintf(stderr, "Error reading disk model for %s\n", rootbdev); + log_error("Error reading disk model for %s: %m\n", rootbdev); fclose(f); } else { if (fd >= 0) @@ -196,7 +196,7 @@ static void svg_title(const char *build) { /* various utsname parameters */ if (uname(&uts)) - fprintf(stderr, "Error getting uname info\n"); + log_error("Error getting uname info\n"); /* date */ t = time(NULL); -- cgit v1.2.3-54-g00ecf