diff options
author | Helge Deller <deller@gmx.de> | 2024-11-29 09:53:23 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2025-01-24 13:58:40 +0100 |
commit | b97f8d1fa5f783d1ff436b52b29612ecb8793f93 (patch) | |
tree | 77cd1fdc66ab689c839283ee19664d938d1cde55 | |
parent | 5f01c60879f0a1dd540c2c25757a57908847e055 (diff) | |
download | qemu-b97f8d1fa5f783d1ff436b52b29612ecb8793f93.zip qemu-b97f8d1fa5f783d1ff436b52b29612ecb8793f93.tar.gz qemu-b97f8d1fa5f783d1ff436b52b29612ecb8793f93.tar.bz2 |
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>
-rw-r--r-- | linux-user/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 78c7c0b..a157abc 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1827,7 +1827,7 @@ static inline abi_long target_to_host_cmsg(struct msghdr *msgh, *dst = tswap32(*dst); } } else { - qemu_log_mask(LOG_UNIMP, "Unsupported ancillary data: %d/%d\n", + qemu_log_mask(LOG_UNIMP, "Unsupported target ancillary data: %d/%d\n", cmsg->cmsg_level, cmsg->cmsg_type); memcpy(data, target_data, len); } @@ -2049,7 +2049,7 @@ static inline abi_long host_to_target_cmsg(struct target_msghdr *target_msgh, default: unimplemented: - qemu_log_mask(LOG_UNIMP, "Unsupported ancillary data: %d/%d\n", + qemu_log_mask(LOG_UNIMP, "Unsupported host ancillary data: %d/%d\n", cmsg->cmsg_level, cmsg->cmsg_type); memcpy(target_data, data, MIN(len, tgt_len)); if (tgt_len > len) { |