This is an archive of the discontinued LLVM Phabricator instance.

Check 'r' and 'y specifiers of freebsd_kernel_printf format strings on PS4
ClosedPublic

Authored by Sunil_Srivastava on Apr 26 2016, 12:51 PM.

Details

Reviewers
dim
Summary

This is an addendum to r229921.

Diff Detail

Event Timeline

Sunil_Srivastava retitled this revision from to Check 'r' and 'y specifiers of freebsd_kernel_printf format strings on PS4.
Sunil_Srivastava updated this object.
Sunil_Srivastava added a reviewer: dim.
Sunil_Srivastava added a subscriber: cfe-commits.
dim accepted this revision.Apr 26 2016, 1:21 PM
dim edited edge metadata.

LGTM.

test/Sema/format-strings-freebsd.c
39

It's nice to add these for %r, but is there any reason you didn't add similar ones for %y? (This is just a minor nit.)

This revision is now accepted and ready to land.Apr 26 2016, 1:21 PM

I had put these 'h' test lines to test the first of my changes, and this sufficed, but you are correct. I should add %y too. I am going to add '%hr' and '%hy'.

test/Sema/format-strings-freebsd.c
39

I had put these lines to test the first of my changes, and this sufficed, but you are correct. I should add %y too. I am going to add '%hr' and '%hy'.

Submitted as r267625.