From 8ad9453ee66ec1beaff9c8711cf732a861176a6f Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Fri, 7 Sep 2018 09:08:37 +0800 Subject: [PATCH] LU-11016 obdclass: change JobID error into warning Change the "jobid value too large" message from a console error into a warning, since it doesn't really indicate incorrect Lustre behaviour. Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: Ibde3b686061fc7b4daa48dae5623e60ad157e5c8 Reviewed-on: https://review.whamcloud.com/33128 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Ben Evans Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- lustre/obdclass/jobid.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/obdclass/jobid.c b/lustre/obdclass/jobid.c index 75fd29b..633388b 100644 --- a/lustre/obdclass/jobid.c +++ b/lustre/obdclass/jobid.c @@ -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; } -- 1.8.3.1