From: Laurent Vivier <laurent@vivier.eu>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: qemu-devel@nongnu.org, "Riku Voipio" <riku.voipio@iki.fi>,
"Guido Günther" <agx@sigxcpu.org>
Subject: Re: [Qemu-devel] [PATCH v2 03/12] linux-user/strace: Add print_timezone()
Date: Sun, 1 Jul 2018 21:44:12 +0200 [thread overview]
Message-ID: <ef46c1d4-c680-1f3c-58c2-23230b19dff8@vivier.eu> (raw)
In-Reply-To: <20180628034652.24152-4-f4bug@amsat.org>
Le 28/06/2018 à 05:46, Philippe Mathieu-Daudé a écrit :
> Suggested-by: Laurent Vivier <laurent@vivier.eu>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> linux-user/strace.c | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/linux-user/strace.c b/linux-user/strace.c
> index bd897a3f20..b43a21f48b 100644
> --- a/linux-user/strace.c
> +++ b/linux-user/strace.c
> @@ -63,6 +63,7 @@ UNUSED static void print_string(abi_long, int);
> UNUSED static void print_buf(abi_long addr, abi_long len, int last);
> UNUSED static void print_raw_param(const char *, abi_long, int);
> UNUSED static void print_timeval(abi_ulong, int);
> +UNUSED static void print_timezone(abi_ulong, int);
> UNUSED static void print_number(abi_long, int);
> UNUSED static void print_signal(abi_ulong, int);
> UNUSED static void print_sockaddr(abi_ulong addr, abi_long addrlen);
> @@ -1182,6 +1183,25 @@ print_timeval(abi_ulong tv_addr, int last)
> gemu_log("NULL%s", get_comma(last));
> }
>
> +static void
> +print_timezone(abi_ulong tz_addr, int last)
> +{
> + if (tz_addr) {
> + struct target_timezone *tz;
> +
> + tz = lock_user(VERIFY_READ, tz_addr, sizeof(*tz), 1);
> + if (!tz) {
you should use print_pointer(tz_addr, last) instead of ignoring the value.
Thanks,
Laurent
next prev parent reply other threads:[~2018-07-01 19:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-28 3:46 [Qemu-devel] [PATCH v2 00/12] linux-user: strace improvements Philippe Mathieu-Daudé
2018-06-28 3:46 ` [Qemu-devel] [PATCH v2 01/12] linux-user/syscall: Verify recvfrom(addr) is user-writable Philippe Mathieu-Daudé
2018-06-28 3:46 ` [Qemu-devel] [PATCH v2 02/12] linux-user/strace: Improve capget()/capset() output Philippe Mathieu-Daudé
2018-06-28 3:46 ` [Qemu-devel] [PATCH v2 04/12] linux-user/strace: Improve gettimeofday() and settimeofday() output Philippe Mathieu-Daudé
2018-07-01 19:52 ` Laurent Vivier
2018-06-28 3:46 ` [Qemu-devel] [PATCH v2 05/12] linux-user/strace: Dump AF_NETLINK sockaddr content Philippe Mathieu-Daudé
2018-06-28 3:46 ` [Qemu-devel] [PATCH v2 06/12] linux-user/strace: Improve recvmsg() output Philippe Mathieu-Daudé
2018-06-28 3:46 ` [Qemu-devel] [PATCH v2 09/12] linux-user/strace: Let print_sockaddr() have a 'last' argument Philippe Mathieu-Daudé
2018-06-28 3:46 ` [Qemu-devel] [RFC PATCH v2 10/12] linux-user/strace: Add print_sockaddr_ptr() to handle plain/pointer addrlen Philippe Mathieu-Daudé
2018-06-28 3:46 ` [Qemu-devel] [PATCH v2 11/12] linux-user/strace: Improve getsockname() output Philippe Mathieu-Daudé
2018-06-28 3:46 ` [Qemu-devel] [PATCH v2 12/12] linux-user/strace: Improve recvfrom() output Philippe Mathieu-Daudé
[not found] ` <20180628034652.24152-4-f4bug@amsat.org>
2018-07-01 19:44 ` Laurent Vivier [this message]
2018-07-02 17:37 ` [Qemu-devel] [PATCH v2 03/12] linux-user/strace: Add print_timezone() Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ef46c1d4-c680-1f3c-58c2-23230b19dff8@vivier.eu \
--to=laurent@vivier.eu \
--cc=agx@sigxcpu.org \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).