[PATCH] libnuma: more verbose warning
Petr Holasek <[email protected]> Fri, 06 Jan 2012 09:38:47 -0500 (EST)
| Newsgroups | org.kernel.vger.linux-numa |
|---|---|
| Message-ID | <aa03bce8-6569-41fc-a4d8-2a9335a6eafa@zmail15.collab.prod.int.phx2.redhat.com> |
From: Petr Holasek <[email protected]> This patch fix warning message in numa_node_to_cpus_v1 function to be more verbose like in its v2. -- --- libnuma.c.orig 2012-01-04 12:34:56.020982842 +0100 +++ libnuma.c 2012-01-06 15:04:24.774418535 +0100 @@ -1287,6 +1287,8 @@ numa_node_to_cpus_v1(int node, unsigned numa_warn(W_nosysfs2, "/sys not mounted or invalid. Assuming one node: %s", strerror(errno)); + numa_warn(W_nosysfs2, + "(cannot open or correctly parse %s)", fn); bitmask.maskp = (unsigned long *)mask; bitmask.size = buflen_needed * 8; numa_bitmask_setall(&bitmask);