Thread (44 messages) 44 messages, 6 authors, 2021-02-19

Re: [rt-tests v2 v2 14/20] rt-numa: Use error message helpers

From: John Kacur <jkacur@redhat.com>
Date: 2021-01-26 06:42:08


On Fri, 18 Dec 2020, Daniel Wagner wrote:
quoted hunk ↗ jump to hunk
As we have our small error message helpers use them.

Signed-off-by: Daniel Wagner <redacted>
---
 src/lib/rt-numa.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/rt-numa.c b/src/lib/rt-numa.c
index fc7adb4d467a..3a8441d5151c 100644
--- a/src/lib/rt-numa.c
+++ b/src/lib/rt-numa.c
@@ -40,7 +40,7 @@ static int cpu_for_thread_sp(int thread_num, int max_cpus, struct bitmask *cpuma
 			cpu++;
 		}
 	}
-	fprintf(stderr, "Bug in cpu mask handling code.\n");
+	warn("Bug in cpu mask handling code.\n");
 	return 0;
 }
 
@@ -68,7 +68,7 @@ static int cpu_for_thread_ua(int thread_num, int max_cpus)
 		}
 	}
 
-	fprintf(stderr, "Bug in cpu mask handling code.\n");
+	warn("Bug in cpu mask handling code.\n");
 	return 0;
 }
 
-- 
2.29.2
Signed-off-by: John Kacur <jkacur@redhat.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help