Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Oct 2016 14:07:34 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r306845 - stable/11/include
Message-ID:  <201610081407.u98E7YsN099715@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Sat Oct  8 14:07:34 2016
New Revision: 306845
URL: https://svnweb.freebsd.org/changeset/base/306845

Log:
  MFC r306568, r306569
  
  Add the __printflike attribute to the declarations of
  dprintf(3) and vdprintf(3).
  
  Sponsored by:	Dell EMC

Modified:
  stable/11/include/stdio.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/include/stdio.h
==============================================================================
--- stable/11/include/stdio.h	Sat Oct  8 13:49:40 2016	(r306844)
+++ stable/11/include/stdio.h	Sat Oct  8 14:07:34 2016	(r306845)
@@ -356,7 +356,7 @@ ssize_t	 getdelim(char ** __restrict, si
 	    FILE * __restrict);
 FILE	*open_memstream(char **, size_t *);
 int	 renameat(int, const char *, int, const char *);
-int	 vdprintf(int, const char * __restrict, __va_list);
+int	 vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
 
 /*
  * Every programmer and his dog wrote functions called getline() and dprintf()
@@ -392,7 +392,7 @@ ssize_t	 getline(char ** __restrict, siz
 #endif
 
 #ifdef _WITH_DPRINTF
-int	 (dprintf)(int, const char * __restrict, ...);
+int	 (dprintf)(int, const char * __restrict, ...) __printflike(2, 3);
 #endif
 
 #endif /* __POSIX_VISIBLE >= 200809 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610081407.u98E7YsN099715>