diff options
author | Laszlo Ersek <lersek@redhat.com> | 2014-05-20 13:39:42 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-06-11 10:10:28 -0400 |
commit | 92ba1401e0f81ea170803045c1ae366bf5d9d87e (patch) | |
tree | 305f1cd5d33dfa900a5ebefc885087fd08ebd0d2 /include/sysemu | |
parent | ae3f88f60fb9f42bb3679311c2fbff8e1868ea47 (diff) | |
download | qemu-92ba1401e0f81ea170803045c1ae366bf5d9d87e.zip qemu-92ba1401e0f81ea170803045c1ae366bf5d9d87e.tar.gz qemu-92ba1401e0f81ea170803045c1ae366bf5d9d87e.tar.bz2 |
dump: simplify write_start_flat_header()
Currently, the function
- defines and populates an auto variable of type MakedumpfileHeader
- allocates and zeroes a buffer of size MAX_SIZE_MDF_HEADER (4096)
- copies the former into the latter (covering an initial portion of the
latter)
Fill in the MakedumpfileHeader structure in its final place (the alignment
is OK because the structure lives at the address returned by g_malloc0()).
Approximately-suggested-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include/sysemu')
0 files changed, 0 insertions, 0 deletions