From 4aede46adc7f94d85fd839e08a8cc312f05f0292 Mon Sep 17 00:00:00 2001 From: Kris Jacque Date: Mon, 22 Apr 2024 16:36:22 +0000 Subject: [PATCH] DAOS-15686 gurt: Accept ERROR as a log mask string A change further up in the stack revealed that "ERROR" wasn't accepted as a log mask string at the engine level. Test-tag: pr test_version Required-githooks: true Signed-off-by: Kris Jacque --- src/gurt/dlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gurt/dlog.c b/src/gurt/dlog.c index e46361ebd1e..5130f085c55 100644 --- a/src/gurt/dlog.c +++ b/src/gurt/dlog.c @@ -763,7 +763,7 @@ static int d_log_str2pri(const char *pstr, size_t len) * handle some quirks */ - if (strncasecmp(pstr, "ERR", len) == 0) + if (strncasecmp(pstr, "ERR", len) == 0 || strncasecmp(pstr, "ERROR", len) == 0) /* has trailing space in the array */ return DLOG_ERR; if (((strncasecmp(pstr, "DEBUG", len) == 0) ||