diff options
author | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2011-11-07 14:37:51 +0000 |
---|---|---|
committer | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2011-11-07 14:37:51 +0000 |
commit | c3ffb819432449ced1f1c3d98a94e5e630d0d173 (patch) | |
tree | 4a3ea0857fcc1992f9109dc9620087a18dfcbfa0 /xen/common/spinlock.c | |
parent | d98feda5c75658446f4ad28df3b6c855d9b5faa3 (diff) | |
download | xen-c3ffb819432449ced1f1c3d98a94e5e630d0d173.tar.gz xen-c3ffb819432449ced1f1c3d98a94e5e630d0d173.tar.bz2 xen-c3ffb819432449ced1f1c3d98a94e5e630d0d173.zip |
avoid hypervisor panic when printing lock profiling information
When printing lock profiling information via keyhandler in the
hypervisor the system will panic. This patch corrects the problem.
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/spinlock.c')
-rw-r--r-- | xen/common/spinlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/spinlock.c b/xen/common/spinlock.c index 14ecfd7f3d..ecf5b441df 100644 --- a/xen/common/spinlock.c +++ b/xen/common/spinlock.c @@ -458,9 +458,9 @@ static void spinlock_profile_print_elem(struct lock_profile *data, int32_t type, int32_t idx, void *par) { if ( type == LOCKPROF_TYPE_GLOBAL ) - printk("%s %s:\n", lock_profile_ancs[idx].name, data->name); + printk("%s %s:\n", lock_profile_ancs[type].name, data->name); else - printk("%s %d %s:\n", lock_profile_ancs[idx].name, idx, data->name); + printk("%s %d %s:\n", lock_profile_ancs[type].name, idx, data->name); printk(" lock:%12"PRId64"(%08X:%08X), block:%12"PRId64"(%08X:%08X)\n", data->lock_cnt, (u32)(data->time_hold >> 32), (u32)data->time_hold, data->block_cnt, (u32)(data->time_block >> 32), |