Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib/igt_os: Fix igt_require_memory error messages
@ 2026-10-06 20:44 Jonathan Cavitt
  2026-10-06 21:50 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jonathan Cavitt @ 2026-10-06 20:44 UTC (permalink / raw)
  To: igt-dev; +Cc: jonathan.cavitt, alex.zuo

Info grabbed via igt_sysfs_get does not have a newline attached to the
end, meaning portions of the igt_warn messages produced in
igt_require_memory are printed to the same line as each other.  Clean
that up.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
---
 lib/igt_os.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt_os.c b/lib/igt_os.c
index 0fa10ee750..bbc432d721 100644
--- a/lib/igt_os.c
+++ b/lib/igt_os.c
@@ -434,14 +434,14 @@ void igt_require_memory(uint64_t count, uint64_t size, unsigned mode)
 
 		info = igt_sysfs_get(dir, "meminfo");
 		if (info) {
-			igt_warn("Insufficient free memory; /proc/meminfo:\n%s",
+			igt_warn("Insufficient free memory; /proc/meminfo:\n%s\n",
 				 info);
 			free(info);
 		}
 
 		info = igt_sysfs_get(dir, "slabinfo");
 		if (info) {
-			igt_warn("Insufficient free memory; /proc/slabinfo:\n%s",
+			igt_warn("Insufficient free memory; /proc/slabinfo:\n%s\n",
 				 info);
 			free(info);
 		}
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-07  9:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 20:44 [PATCH] lib/igt_os: Fix igt_require_memory error messages Jonathan Cavitt
2026-10-06 21:50 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-10-06 22:00 ` ✓ i915.CI.BAT: " Patchwork
2026-10-07  0:02 ` ✗ i915.CI.Full: failure " Patchwork
2026-10-07  2:40 ` ✗ Xe.CI.FULL: " Patchwork
2026-10-07  9:38 ` [PATCH] " Dandamudi, Priyanka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox