diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-04-15 10:07:31 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-04-15 10:07:31 +0100 |
commit | c702fb4c9dcc27c2ab09cf1a4bd0e5f6f6b4d6ac (patch) | |
tree | 414c242496d1fa205931b1a0d16727cc2e234243 /tools/libxc/xc_core.c | |
parent | 660442fdafa7c0d0b145c0ae372aa3e93c7322eb (diff) | |
download | xen-c702fb4c9dcc27c2ab09cf1a4bd0e5f6f6b4d6ac.tar.gz xen-c702fb4c9dcc27c2ab09cf1a4bd0e5f6f6b4d6ac.tar.bz2 xen-c702fb4c9dcc27c2ab09cf1a4bd0e5f6f6b4d6ac.zip |
Fix whitespace in libxc. Tabs are manually fixed.
Trailing whitespace removed with:
perl -p -i -e 's/\s+$/\n/g' tools/libxc/*.[ch]
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Diffstat (limited to 'tools/libxc/xc_core.c')
-rw-r--r-- | tools/libxc/xc_core.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 4d7158b72e..04f1b7867b 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -23,7 +23,7 @@ copy_from_domain_page(int xc_handle, return 0; } -int +int xc_domain_dumpcore_via_callback(int xc_handle, uint32_t domid, void *args, @@ -45,13 +45,13 @@ xc_domain_dumpcore_via_callback(int xc_handle, PERROR("Could not allocate dump_mem"); goto error_out; } - + if ( xc_domain_getinfo(xc_handle, domid, 1, &info) != 1 ) { PERROR("Could not get info for domain"); goto error_out; } - + if ( domid != info.domid ) { PERROR("Domain %d does not exist", domid); @@ -61,10 +61,10 @@ xc_domain_dumpcore_via_callback(int xc_handle, for ( i = 0; i <= info.max_vcpu_id; i++ ) if ( xc_vcpu_getcontext(xc_handle, domid, i, &ctxt[nr_vcpus]) == 0) nr_vcpus++; - + nr_pages = info.nr_pages; - header.xch_magic = XC_CORE_MAGIC; + header.xch_magic = XC_CORE_MAGIC; header.xch_nr_vcpus = nr_vcpus; header.xch_nr_pages = nr_pages; header.xch_ctxt_offset = sizeof(struct xc_core_header); @@ -74,7 +74,7 @@ xc_domain_dumpcore_via_callback(int xc_handle, (sizeof(vcpu_guest_context_t) * nr_vcpus) + (nr_pages * sizeof(unsigned long))); header.xch_pages_offset = round_pgup(dummy_len); - + sts = dump_rtn(args, (char *)&header, sizeof(struct xc_core_header)); if ( sts != 0 ) goto error_out; @@ -150,7 +150,7 @@ static int local_file_dump(void *args, char *buffer, unsigned int length) return 0; } -int +int xc_domain_dumpcore(int xc_handle, uint32_t domid, const char *corename) @@ -163,7 +163,7 @@ xc_domain_dumpcore(int xc_handle, PERROR("Could not open corefile %s: %s", corename, strerror(errno)); return -errno; } - + sts = xc_domain_dumpcore_via_callback( xc_handle, domid, &da, &local_file_dump); |