summaryrefslogtreecommitdiff
path: root/xen/arch/x86/numa.c
diff options
context:
space:
mode:
authorAndrew Cooper <andrew.cooper3@citrix.com>2018-09-06 11:42:34 +0000
committerAndrew Cooper <andrew.cooper3@citrix.com>2018-11-19 16:58:35 +0000
commit59e087bf6a9c8ad805294c32dfd7c77068d81eff (patch)
tree88c0d3fa7766ad3c61a3a2f73df9e0daee036152 /xen/arch/x86/numa.c
parent30311d2e82a3eb69aa1667382a6b2529f6d944c4 (diff)
xen/keyhandler: Drop keyhandler_scratch
With almost all users of keyhandler_scratch gone, clean up the 3 remaining users and drop the buffer. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/arch/x86/numa.c')
-rw-r--r--xen/arch/x86/numa.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c
index 8e08173940..b3c9c12d7f 100644
--- a/xen/arch/x86/numa.c
+++ b/xen/arch/x86/numa.c
@@ -372,7 +372,6 @@ static void dump_numa(unsigned char key)
{
s_time_t now = NOW();
unsigned int i, j, n;
- int err;
struct domain *d;
struct page_info *page;
unsigned int page_num_node[MAX_NUMNODES];
@@ -454,12 +453,10 @@ static void dump_numa(unsigned char key)
{
unsigned int start_cpu = ~0U;
- err = snprintf(keyhandler_scratch, 12, "%3u",
- vnuma->vnode_to_pnode[i]);
- if ( err < 0 || vnuma->vnode_to_pnode[i] == NUMA_NO_NODE )
- strlcpy(keyhandler_scratch, "???", sizeof(keyhandler_scratch));
-
- printk(" %3u: pnode %s,", i, keyhandler_scratch);
+ if ( vnuma->vnode_to_pnode[i] == NUMA_NO_NODE )
+ printk(" %3u: pnode ???,", i);
+ else
+ printk(" %3u: pnode %3u,", i, vnuma->vnode_to_pnode[i]);
printk(" vcpus ");