Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Oct 2016 14:10:45 +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-10@freebsd.org
Subject:   svn commit: r306846 - stable/10/include
Message-ID:  <201610081410.u98EAjEu001261@repo.freebsd.org>

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

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

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

Modified: stable/10/include/stdio.h
==============================================================================
--- stable/10/include/stdio.h	Sat Oct  8 14:07:34 2016	(r306845)
+++ stable/10/include/stdio.h	Sat Oct  8 14:10:45 2016	(r306846)
@@ -351,7 +351,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()
@@ -387,7 +387,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 /* __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 */



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