X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=devices%2Fyaboot-parser.c;h=23249509cdd04b18329f36bf590fd0ff29fb02cf;hp=ee14cb1b41d144fcbcf1e59cd35791c8cff3a45a;hb=9abd11523d69b821f034bb0cb597880c2b61210e;hpb=f6de8493cf6645f8da027671f935cf22f8008a1b diff --git a/devices/yaboot-parser.c b/devices/yaboot-parser.c index ee14cb1..2324950 100644 --- a/devices/yaboot-parser.c +++ b/devices/yaboot-parser.c @@ -1,5 +1,5 @@ -#include "udev-helper.h" +#include "parser.h" #include "params.h" #include "yaboot-cfg.h" @@ -105,7 +105,7 @@ void process_image(char *label) cfgopt = cfg_get_strg(label, "image"); opt.boot_image_file = join_paths(mountpoint, cfgopt); if (cfgopt == defimage) - printf("This one is default. What do we do about it?\n"); + pb_log("This one is default. What do we do about it?\n"); cfgopt = cfg_get_strg(label, "initrd"); if (cfgopt) @@ -164,7 +164,7 @@ static int yaboot_parse(const char *devicepath, const char *_mountpoint) close(fd); if (cfg_parse(filepath, conf_file, conf_len)) { - printf("Error parsing yaboot.conf\n"); + pb_log("Error parsing yaboot.conf\n"); return 0; } @@ -207,7 +207,7 @@ static int yaboot_parse(const char *devicepath, const char *_mountpoint) yet. And on removal, unmount_device() only unmounts it once, while in fact it may be mounted twice. */ if (mount_device(new_dev, partition_mntpoint)) { - printf("Error mounting image partition\n"); + pb_log("Error mounting image partition\n"); return 0; } mountpoint = partition_mntpoint;