diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-11-26 11:00:15 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-11-26 11:00:15 +0000 |
commit | 05bafb26f1d9ae60aa160a8c58f861a3c4cd08d9 (patch) | |
tree | 70f5e03120d84ef2646a357e8d9f75df5b8483aa /tools/libxc/xc_core.c | |
parent | f0e8b55eb1930baf2810b5cf78b7f4476b40180f (diff) | |
download | xen-05bafb26f1d9ae60aa160a8c58f861a3c4cd08d9.tar.gz xen-05bafb26f1d9ae60aa160a8c58f861a3c4cd08d9.tar.bz2 xen-05bafb26f1d9ae60aa160a8c58f861a3c4cd08d9.zip |
libxc: Fix 32-vs-64 bitness issue in saving vcpu contexts in core dump
Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_core.c')
-rw-r--r-- | tools/libxc/xc_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 0c226ac7b2..9778ea0a94 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -628,10 +628,10 @@ xc_domain_dumpcore_via_callback(int xc_handle, PERROR("Could not get section header for .xen_prstatus"); goto out; } - filesz = sizeof(ctxt[0].c) * nr_vcpus; + filesz = sizeof(*ctxt) * nr_vcpus; sts = xc_core_shdr_set(shdr, strtab, XEN_DUMPCORE_SEC_PRSTATUS, SHT_PROGBITS, offset, filesz, - __alignof__(ctxt[0].c), sizeof(ctxt[0].c)); + __alignof__(*ctxt), sizeof(*ctxt)); if ( sts != 0 ) goto out; offset += filesz; @@ -755,7 +755,7 @@ xc_domain_dumpcore_via_callback(int xc_handle, goto out; /* prstatus: .xen_prstatus */ - sts = dump_rtn(args, (char *)&ctxt[0].c, sizeof(ctxt[0].c) * nr_vcpus); + sts = dump_rtn(args, (char *)ctxt, sizeof(*ctxt) * nr_vcpus); if ( sts != 0 ) goto out; |