lkml.org 
[lkml]   [2020]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectprintk of non NULL terminated strings ?
Date
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
\
 
 \ /
  Last update: 2020-07-09 14:31    [W:0.070 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site