Skip to content

Commit b97f8d1

Browse files
committed
linux-user: Use unique error messages for cmsg parsing
Avoid using the same error message for two different code paths as it complicates determining the one which actually triggered. Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu>
1 parent 5f01c60 commit b97f8d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linux-user/syscall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ static inline abi_long target_to_host_cmsg(struct msghdr *msgh,
18271827
*dst = tswap32(*dst);
18281828
}
18291829
} else {
1830-
qemu_log_mask(LOG_UNIMP, "Unsupported ancillary data: %d/%d\n",
1830+
qemu_log_mask(LOG_UNIMP, "Unsupported target ancillary data: %d/%d\n",
18311831
cmsg->cmsg_level, cmsg->cmsg_type);
18321832
memcpy(data, target_data, len);
18331833
}
@@ -2049,7 +2049,7 @@ static inline abi_long host_to_target_cmsg(struct target_msghdr *target_msgh,
20492049

20502050
default:
20512051
unimplemented:
2052-
qemu_log_mask(LOG_UNIMP, "Unsupported ancillary data: %d/%d\n",
2052+
qemu_log_mask(LOG_UNIMP, "Unsupported host ancillary data: %d/%d\n",
20532053
cmsg->cmsg_level, cmsg->cmsg_type);
20542054
memcpy(target_data, data, MIN(len, tgt_len));
20552055
if (tgt_len > len) {

0 commit comments

Comments
 (0)