printk of non NULL terminated strings ?

From: Joakim Tjernlund
Date: Thu Jul 09 2020 - 08:31:20 EST


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