Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 192be1dc authored by Miodrag Dinic's avatar Miodrag Dinic
Browse files

[qemu]: Fix payload size format in qemu_pipe_frame_send()



The following change introduced regression for booting AOSP
on emulator for all architectures:

7c7990e6 Fix warnings in system/ headers

qemu_pipe expects payload size in the message header to be in hex format,
as stated in the comment for qemu_pipe_frame_send().

Change-Id: I32cfa9c9b2af56f93bbda0ea5597451c389ae45e
Signed-off-by: default avatarMiodrag Dinic <miodrag.dinic@imgtec.com>
parent 06460bf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));