just include fcntl.h not sys/fcntl.h
[oweals/busybox.git] / util-linux / fdformat.c
index e7dd943bb9ecd5f19f8b780a84e0cc410e9600e1..5772e13090fcd1a5aec1fa25180de86a7012caef 100644 (file)
@@ -85,7 +85,7 @@ int fdformat_main(int argc,char **argv)
 
        /* R_OK is needed for verifying */
        if (stat(*argv,&st) < 0 || access(*argv,W_OK | R_OK ) < 0) {
-               bb_perror_msg_and_die(*argv);
+               bb_perror_msg_and_die("%s",*argv);
        }
        if (!S_ISBLK(st.st_mode)) {
                bb_error_msg_and_die("%s: not a block device",*argv);