handle xlat styles ioprio
shankarapailoor
shankarapailoor at gmail.com
Mon Feb 18 15:08:12 UTC 2019
Hi Dmitry,
Attached is a v2 patch.
Regards,
Shankara
On Sun, Feb 17, 2019 at 5:37 PM Dmitry V. Levin <ldv at altlinux.org> wrote:
> On Sun, Feb 17, 2019 at 10:23:53AM -0600, shankarapailoor wrote:
> > >Why do you handle XLAT_STYLE_VERBOSE as XLAT_STYLE_RAW here?
> >
> > Good question. I think I handled both cases the same because I didn't
> know
> > if verbose should print the auxiliary string after the return value. If
> you
> > think it should then I'm ok with leaving it back in.
>
> The auxiliary string is printed along with the return value, so
> I'd say it behaves more like XLAT_STYLE_VERBOSE by default.
> I don't think XLAT_STYLE_VERBOSE should be less verbose than the default.
>
> > >The check for XLAT_STYLE_RAW seems to be redundant here.
> >
> > Sorry but I don't see how it is. If I don't include the check, then under
> > XLAT_STYLE_RAW, we will call tprints(sprint_ioprio(tcp->u_arg[2]) after
> > printing the raw value which seems wrong.
>
> After the second look it no longer seems redundant.
>
>
> --
> ldv
> --
> Strace-devel mailing list
> Strace-devel at lists.strace.io
> https://lists.strace.io/mailman/listinfo/strace-devel
>
--
Regards,
Shankara Pailoor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20190218/125c25d0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-handle-xlat_styles-when-decoding-ioprio_get-and-s.patch
Type: text/x-patch
Size: 6199 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20190218/125c25d0/attachment.bin>
More information about the Strace-devel
mailing list