On Sun, Apr 04, 2021 at 07:17:27AM +0100, Jason McIntyre wrote:
> On Sun, Apr 04, 2021 at 01:22:23AM +0200, Klemens Nanni wrote:
> > @@ -119,6 +119,17 @@ send formatted strings to the ddb console, and are onl
> > Since each of these kernel functions is a variant of its user space
> > counterpart, this page describes only the differences between the user
> > space and kernel versions.
> > +.Pp
> > +The limited syntax of a conversion specification is:
>
> hi. i'm fine with your diff, though cannot really judge the actual
> content. but the "limited syntax" text is a bit ambiguous. you could
> still expect from it that a full syntax version is supported.
Right, I do imply that nothing more is supported; this sentence is a
cheap copy of printf(3)'s sentence
The overall syntax of a conversion specification is:
> maybe spell it out?
>
> printf(9) supports a subset of the conversion specification
> available to printf(3):
>
> sth like that?
Thanks, how about this?
Only a subset of the user space conversion specification is available to
the kernel version:
%[width][size]conversion
Refer to printf(3) for functional details.
Index: share/man/man9/printf.9
===================================================================
RCS file: /cvs/src/share/man/man9/printf.9,v
retrieving revision 1.24
diff -u -p -r1.24 printf.9
--- share/man/man9/printf.9 7 Nov 2015 03:48:25 -0000 1.24
+++ share/man/man9/printf.9 4 Apr 2021 13:39:02 -0000
@@ -119,6 +119,18 @@ send formatted strings to the ddb consol
Since each of these kernel functions is a variant of its user space
counterpart, this page describes only the differences between the user
space and kernel versions.
+.Pp
+Only a subset of the user space conversion specification is available to the
+kernel version:
+.Bd -filled -offset indent
+.Sm off
+.Cm %
+.Op Ar width
+.Op Ar size
+.Ar conversion
+.Sm on
+.Ed
+.Pp
Refer to
.Xr printf 3
for functional details.