Re: printk of non NULL terminated strings ?

2020-07-09 Thread Joakim Tjernlund
On Thu, 2020-07-09 at 15:30 +0200, Rasmus Villemoes wrote: > On 09/07/2020 15.26, Joakim Tjernlund wrote: > > On Thu, 2020-07-09 at 14:56 +0200, Andreas Schwab wrote: > > > CAUTION: This email originated from outside of the organization. Do not > > > click links or open attachments unless you

Re: printk of non NULL terminated strings ?

2020-07-09 Thread Rasmus Villemoes
On 09/07/2020 15.26, Joakim Tjernlund wrote: > On Thu, 2020-07-09 at 14:56 +0200, Andreas Schwab wrote: >> CAUTION: This email originated from outside of the organization. Do not >> click links or open attachments unless you recognize the sender and know the >> content is safe. >> >> >> On Jul

Re: printk of non NULL terminated strings ?

2020-07-09 Thread Joakim Tjernlund
On Thu, 2020-07-09 at 14:56 +0200, Andreas Schwab wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > On Jul 09 2020, Joakim Tjernlund wrote: > > > Is there a

Re: printk of non NULL terminated strings ?

2020-07-09 Thread Andreas Schwab
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, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552

printk of non NULL terminated strings ?

2020-07-09 Thread Joakim Tjernlund
Is there a format (or other function) that lets me print strings without an \0 terminator using an explicit length arg instead? Something like: printk("%s...", str, str_len); /* replace ... */ or some other funktion perhaps ? Jocke