diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-01 14:49:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-06-15 11:57:24 +0100 |
commit | b7a2e4e35b8017fbf043fcbefae318813feee462 (patch) | |
tree | fb3e56fb34b2508810aec596bcd05f9d75b3fbfb /lib/intel_os.c | |
parent | 3381a56be31defb3b5c23a4fbc19ac26a000c35b (diff) |
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 <chris@chris-wilson.co.uk>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/intel_os.c')
-rw-r--r-- | lib/intel_os.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |