udhcpc: fix a problem with binary-encoded options #2
[oweals/busybox.git] / libbb / xfuncs_printf.c
index d8a42ba0bccb00a49fd250606965402cd7830c21..05aa07ce80151077676aa072073f81fffc3dd4f9 100644 (file)
@@ -355,13 +355,13 @@ void FAST_FUNC xsetuid(uid_t uid)
 void FAST_FUNC xchdir(const char *path)
 {
        if (chdir(path))
-               bb_perror_msg_and_die("chdir(%s)", path);
+               bb_perror_msg_and_die("can't change directory to '%s'", path);
 }
 
 void FAST_FUNC xchroot(const char *path)
 {
        if (chroot(path))
-               bb_perror_msg_and_die("can't change root directory to %s", path);
+               bb_perror_msg_and_die("can't change root directory to '%s'", path);
        xchdir("/");
 }