Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Laszlo Ersek <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]>
- Loading branch information