From: Jo-Philipp Wich Date: Wed, 25 Feb 2015 20:16:56 +0000 (+0100) Subject: mount_root: convert to ulog() api X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fa23aef606c0a7b87552c7f6643d4fcbe9c2eee4;p=oweals%2Ffstools.git mount_root: convert to ulog() api Signed-off-by: Jo-Philipp Wich --- 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; }