diff options
| author | Filip Bozuta | 2020-07-02 18:09:15 +0200 |
|---|---|---|
| committer | Laurent Vivier | 2020-08-23 16:57:58 +0200 |
| commit | 664441ea0111ef4dc68510d87b89b983ef838500 (patch) | |
| tree | b2c183e1cd57f3941e5dd13230ed15e3d92b6fa1 /scripts/clean-includes | |
| parent | Merge remote-tracking branch 'remotes/philmd-gitlab/tags/sd-next-20200821' in... (diff) | |
| download | qemu-664441ea0111ef4dc68510d87b89b983ef838500.tar.gz qemu-664441ea0111ef4dc68510d87b89b983ef838500.tar.xz qemu-664441ea0111ef4dc68510d87b89b983ef838500.zip | |
linux-user: Fix "print_fdset()" in "strace.c" to not print ", " after last value
Function "print_fdset()" in "strace.c" is used to print the file descriptor
values in "print__newselect()" which prints arguments of syscall _newselect().
Until changes from this patch, this function was printing "," even after the
last value of the fd_set argument. This was changed in this patch by removing
this unnecessary "," after the last fd value and thus improving the estetics of
the _newselect() "-strace" print.
Implementation notes:
The printing fix was made possible by using an existing function "get_comma()"
which returns a "," or an empty string "" based on its argument (0 for "," and
other for "").
Signed-off-by: Filip Bozuta <Filip.Bozuta@syrmia.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200702160915.9517-1-Filip.Bozuta@syrmia.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'scripts/clean-includes')
0 files changed, 0 insertions, 0 deletions
