Page MenuHomeFreeBSD

CMSG_DATA.3: Fix formatting of printf escape sequences
ClosedPublic

Authored by 0mp on Mar 13 2020, 10:03 AM.
Tags
None
Referenced Files
F103134373: D24056.diff
Thu, Nov 21, 11:14 AM
Unknown Object (File)
Sep 20 2024, 6:35 PM
Unknown Object (File)
Sep 18 2024, 5:15 AM
Unknown Object (File)
Sep 12 2024, 11:52 AM
Unknown Object (File)
Sep 8 2024, 9:13 AM
Unknown Object (File)
Sep 5 2024, 12:36 PM
Unknown Object (File)
Aug 25 2024, 8:55 PM
Unknown Object (File)
Aug 6 2024, 6:30 AM
Subscribers

Details

Summary
CMSG_DATA.3: Fix formatting of printf escape sequences

Escape sequences like "\n" have to be escaped twice in examples in our
mdoc(7)-based manual pages in order to be displayed properly. The problem is that otherwise they are interpreted by mdoc(7) resulting in:

    printf("parent: received '%s'0, buf);

being printed instead of:

    printf("parent: received '%s'\n", buf);


MFC after:	2 weeks
MFC to:		stable/12

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks good. You don't necessarily need to specify which branch you are planning to MFC to.
It's not wrong either.

This revision is now accepted and ready to land.Mar 13 2020, 10:25 AM
In D24056#528964, @bcr wrote:

Looks good. You don't necessarily need to specify which branch you are planning to MFC to.
It's not wrong either.

I did it because I know that merging it back to stable/11 is not going to happen.

Should I still include it or just skip it as it looks weird?

bcr requested changes to this revision.Mar 13 2020, 10:49 AM

Just skip it.

This revision now requires changes to proceed.Mar 13 2020, 10:49 AM
This revision was not accepted when it landed; it landed in state Needs Revision.Mar 13 2020, 11:08 AM
This revision was automatically updated to reflect the committed changes.