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
Unknown Object (File)
Jan 13 2024, 11:19 AM
Unknown Object (File)
Oct 27 2023, 8:53 PM
Unknown Object (File)
Jul 4 2023, 8:29 PM
Unknown Object (File)
Jun 10 2023, 8:40 PM
Unknown Object (File)
Jun 10 2023, 8:40 PM
Unknown Object (File)
May 12 2023, 7:26 PM
Unknown Object (File)
May 12 2023, 7:14 PM
Unknown Object (File)
May 12 2023, 6:54 PM
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.