summaryrefslogtreecommitdiff
path: root/src/bootchart/svg.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-04-02 13:24:30 +0200
committerDaniel Mack <daniel@zonque.org>2015-04-03 15:29:18 +0200
commit039958632036808f9baa207e72b9827fa97b7a10 (patch)
tree44071876f82fd9e6b85705e168af50db60734a09 /src/bootchart/svg.c
parent61192f1d6954196d5066942241a024de4712243c (diff)
bootchart: switch to log_* helpers
Let the helper functions take care of the string message output.
Diffstat (limited to 'src/bootchart/svg.c')
-rw-r--r--src/bootchart/svg.c4
1 files changed, 2 insertions, 2 deletions
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);