From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: linux-i2c@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org,
Daniel Stodden <daniel.stodden@gmail.com>
Subject: Re: [PATCH i2c-tools] i2ctransfer: add support for I2C_M_RECV_LEN
Date: Mon, 3 Aug 2020 21:14:58 +0200 [thread overview]
Message-ID: <20200803191458.GA2488@kunai> (raw)
In-Reply-To: <20200802192842.13527-1-wsa+renesas@sang-engineering.com>
[-- Attachment #1: Type: text/plain, Size: 426 bytes --]
> + __u16 len = recv_len ? msgs[i].buf[0] + 1 : msgs[i].len;
> +
> + if (flags & PRINT_HEADER) {
> + fprintf(output, "msg %u: addr 0x%02x, %s, len ",
> + i, msgs[i].addr, read ? "read" : "write");
> + if (!recv_len || flags & PRINT_READ_BUF)
> + fprintf(output, "%u", len);
> + else
> + fprintf(output, "TBD");
> + }
>
> if (msgs[i].len && print_buf) {
This must be 'len', of course.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2020-08-03 19:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-02 19:28 [PATCH i2c-tools] i2ctransfer: add support for I2C_M_RECV_LEN Wolfram Sang
2020-08-02 20:28 ` Daniel Stodden
2020-08-02 21:38 ` Wolfram Sang
2020-08-03 7:30 ` Daniel Stodden
2020-08-03 8:38 ` Wolfram Sang
2020-08-03 20:25 ` Daniel Stodden
2020-08-03 20:45 ` Wolfram Sang
2020-08-03 19:14 ` Wolfram Sang [this message]
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=20200803191458.GA2488@kunai \
--to=wsa+renesas@sang-engineering.com \
--cc=daniel.stodden@gmail.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
/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).