From b7a2e4e35b8017fbf043fcbefae318813feee462 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 1 May 2018 14:49:41 +0100 Subject: lib: Bump debug information for lack-of-memory to warn At present, we never see the debug output of intel_require_memory() as the debug log is not automaticaly dumped on requirement fail (only on error). Promote the igt_debug showing the meminfo/slabinfo to igt_warn so that they are visible on stderr without any trickery or --debug. References: e5829165c2ef ("lib: Dump meminfo and slabinfo if we complain about insufficient memory") References: https://bugs.freedesktop.org/show_bug.cgi?id=105967 Signed-off-by: Chris Wilson Reviewed-by: Petri Latvala --- lib/intel_os.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/intel_os.c b/lib/intel_os.c index e82173b3..0cd959ea 100644 --- a/lib/intel_os.c +++ b/lib/intel_os.c @@ -348,15 +348,15 @@ void intel_require_memory(uint64_t count, uint64_t size, unsigned mode) info = igt_sysfs_get(dir, "meminfo"); if (info) { - igt_debug("Insufficient free memory; /proc/meminfo:\n%s", - info); + igt_warn("Insufficient free memory; /proc/meminfo:\n%s", + info); free(info); } info = igt_sysfs_get(dir, "slabinfo"); if (info) { - igt_debug("Insuffucient free memory; /proc/slabinfo:\n%s", - info); + igt_warn("Insufficient free memory; /proc/slabinfo:\n%s", + info); free(info); } -- cgit v1.2.3