X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffstools.git;a=blobdiff_plain;f=mount_root.c;h=3c38a297b3e9b2d43f52eeaeb5763c284aae249a;hp=cc39b44c3fc2a4a796a86960a54966a61ce2a5a6;hb=fa23aef606c0a7b87552c7f6643d4fcbe9c2eee4;hpb=87591ef472baf11b73de7e9d4b2b52d19e50d785;ds=sidebyside 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; }