From fa23aef606c0a7b87552c7f6643d4fcbe9c2eee4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 25 Feb 2015 21:16:56 +0100 Subject: [PATCH] mount_root: convert to ulog() api Signed-off-by: Jo-Philipp Wich --- mount_root.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mount_root.c b/mount_root.c index cc39b44..3c38a29 100644 --- a/mount_root.c +++ b/mount_root.c @@ -15,6 +15,8 @@ #include #include +#include + #include "libfstools/libfstools.h" #include "libfstools/volume.h" @@ -34,7 +36,7 @@ start(int argc, char *argv[1]) if (!data) { root = volume_find("rootfs"); volume_init(root); - fprintf(stderr, "mounting /dev/root\n"); + ULOG_NOTE("mounting /dev/root\n"); mount("/dev/root", "/", NULL, MS_NOATIME | MS_REMOUNT, 0); } @@ -45,7 +47,7 @@ start(int argc, char *argv[1]) */ extroot_prefix = ""; if (!mount_extroot()) { - fprintf(stderr, "fs-state: switched to extroot\n"); + ULOG_NOTE("switched to extroot\n"); return 0; } -- 2.25.1