Hi tech@,

plog format string should be literal.

Comments? OK?

Index: usr.sbin/amd/amd/ifs_ops.c
===================================================================
RCS file: /cvs/src/usr.sbin/amd/amd/ifs_ops.c,v
retrieving revision 1.5
diff -u -p -r1.5 ifs_ops.c
--- usr.sbin/amd/amd/ifs_ops.c  26 Oct 2014 02:43:50 -0000      1.5
+++ usr.sbin/amd/amd/ifs_ops.c  28 Jul 2017 19:22:56 -0000
@@ -63,7 +63,7 @@ ifs_init(mntfs *mf)
 {
        mntfs *mf_link = (mntfs *) mf->mf_private;
        if (mf_link == 0) {
-               plog(XLOG_FATAL, not_a_filesystem);
+               plog(XLOG_FATAL, "%s", not_a_filesystem);
                return EINVAL;
        }
 #ifdef notdef
@@ -89,7 +89,7 @@ ifs_inherit(mntfs *mf)
         */
        mntfs *mf_link = (mntfs *) mf->mf_private;
        if (mf_link == 0) {
-               plog(XLOG_FATAL, not_a_filesystem);
+               plog(XLOG_FATAL, "%s", not_a_filesystem);
                return 0;       /*XXX*/
        }
 

Reply via email to