From 50bf3a9b126be62c2eccbb54a2eaa987e44a5d77 Mon Sep 17 00:00:00 2001 From: Niu Yawei Date: Tue, 18 Sep 2012 05:19:51 -0400 Subject: [PATCH] LU-1735 ptlrpc: cleanup jobid error message In lustre_get_jobid(), -ENOENT error should be printed as D_INFO but not D_ERROR. Signed-off-by: Niu Yawei Change-Id: I6c8133eca37cf00cf4510205e5b2012dccfd8073 Reviewed-on: http://review.whamcloud.com/4024 Tested-by: Hudson Reviewed-by: Jinshan Xiong Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/obdclass/class_obd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 7e60d09..dd981e9 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -152,7 +152,7 @@ int lustre_get_jobid(char *jobid) printed = true; } } else { - CDEBUG((rc == -ENOENT && rc == -EINVAL && + CDEBUG((rc == -ENOENT || rc == -EINVAL || rc == -EDEADLK) ? D_INFO : D_ERROR, "Get jobid for (%s) failed: rc = %d\n", obd_jobid_var, rc); -- 1.8.3.1