printf(1): warn about incomplete uses n$

Reviewed by:	jilles
Obtained from:	Illumos
MFC after:	2 weeks
printf(1): add tests for  warn about incomplete uses n$

Submitted by:	jilles
MFC after:	2 weeks