From: Andreas Schwab <schwab@linux-m68k.org>
To: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: printk of non NULL terminated strings ?
Date: Thu, 09 Jul 2020 14:56:47 +0200 [thread overview]
Message-ID: <87h7ugu9rk.fsf@igel.home> (raw)
In-Reply-To: <4436dd281299b46f431ad1707c5de42af45ea4f7.camel@infinera.com> (Joakim Tjernlund's message of "Thu, 9 Jul 2020 12:31:14 +0000")
On Jul 09 2020, Joakim Tjernlund wrote:
> Is there a format (or other function) that lets me
> print strings without an \0 terminator using an explicit length arg instead?
Use the precision.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2020-07-09 12:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-09 12:31 printk of non NULL terminated strings ? Joakim Tjernlund
2020-07-09 12:56 ` Andreas Schwab [this message]
2020-07-09 13:26 ` Joakim Tjernlund
2020-07-09 13:30 ` Rasmus Villemoes
2020-07-09 15:28 ` Joakim Tjernlund
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=87h7ugu9rk.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=Joakim.Tjernlund@infinera.com \
--cc=linux-kernel@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