Merge "[qemu]: Fix payload size format in qemu_pipe_frame_send()" am: e5976bea7a am: 8c274361fb

am: f610eaac14

Change-Id: I890fbb885044e82d4ec66a5a400240124003ac25
This commit is contained in:
Miodrag Dinic 2016-09-30 18:00:16 +00:00 committed by android-build-merger
commit 53be7eb3d0
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ static int __inline__ qemu_pipe_frame_send(int fd,
const void* buff,
size_t len) {
char header[5];
snprintf(header, sizeof(header), "%04zu", len);
snprintf(header, sizeof(header), "%04zx", len);
ssize_t ret = TEMP_FAILURE_RETRY(write(fd, header, 4));
if (ret != 4) {
QEMU_PIPE_DEBUG("Can't write qemud frame header: %s", strerror(errno));