From f48ee3f226b138d7652bceb3b22cdb6457f98af7 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Fri, 18 Feb 2022 10:18:09 -0600 Subject: [PATCH] EX-4863 lipe: initialize cmd in lamigo_dump_jobs() Fix an uninitialized use of cmd in lamigo_dump_jobs(). Test-Parameters: trivial testlist=hot-pools Fixes: 8a29c986eb ("EX-4103 lamigo: rename some "check" functions") Change-Id: I79c32d9b32a0a06fbd72c0b6dd21d8c6919aebc6 Signed-off-by: John L. Hammond Reviewed-on: https://review.whamcloud.com/46554 Reviewed-by: Alexandre Ioffe Reviewed-by: Jian Yu Tested-by: jenkins Tested-by: Maloo --- lipe/src/lamigo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lipe/src/lamigo.c b/lipe/src/lamigo.c index 6fb66bb..e4b18b3 100644 --- a/lipe/src/lamigo.c +++ b/lipe/src/lamigo.c @@ -427,7 +427,7 @@ static void lamigo_dump_jobs(FILE *out, struct lipe_list_head *jlist) if (j->rj_setprefer) cmd = "setprefer"; - else if (j->rj_resync == AMIGO_RESYNC_EXTEND) + else cmd = PSYNC(j->rj_resync); fprintf(out, JOB_FMT, i++, j->rj_pid, PFID(&j->rj_fid), -- 1.8.3.1