Whamcloud - gitweb
LU-10937 mgc: restore mgc binding for sptlrpc
[fs/lustre-release.git] / lustre / obdclass / jobid.c
index 842def4..633388b 100644 (file)
@@ -38,7 +38,7 @@
 #endif
 #include <linux/utsname.h>
 
-#include <libcfs/linux/linux-misc.h>
+#include <libcfs/libcfs.h>
 #include <obd_support.h>
 #include <obd_class.h>
 #include <lustre_net.h>
@@ -91,9 +91,8 @@ int jobid_get_from_environ(char *jobid_var, char *jobid, int *jobid_len)
                 * larger temp buffer for cfs_get_environ(), then
                 * truncating the string at some separator to fit into
                 * the specified jobid_len.  Fix later if needed. */
-               LCONSOLE_ERROR_MSG(0x16b,
-                                  "jobid: '%s' value too large (%d)\n",
-                                  obd_jobid_var, *jobid_len);
+               LCONSOLE_WARN("jobid: '%s' value too large (%d)\n",
+                             obd_jobid_var, *jobid_len);
                printed = true;
                rc = 0;
        }