From owner-svn-src-head@FreeBSD.ORG Thu Jan 20 11:27:38 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F007A1065672; Thu, 20 Jan 2011 11:27:38 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [IPv6:2001:770:10:300::86e2:510b]) by mx1.freebsd.org (Postfix) with SMTP id C05508FC1D; Thu, 20 Jan 2011 11:27:36 +0000 (UTC) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 20 Jan 2011 11:27:35 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=maths.tcd.ie) by walton.maths.tcd.ie with SMTP id ; 20 Jan 2011 11:27:34 +0000 (GMT) To: Bruce Evans In-reply-to: Your message of "Thu, 20 Jan 2011 19:03:07 +1100." <20110120183431.E11559@besplex.bde.org> Date: Thu, 20 Jan 2011 11:27:34 +0000 From: David Malone Message-ID: <201101201127.aa23364@walton.maths.tcd.ie> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r217589 - head/usr.sbin/syslogd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 11:27:39 -0000 > snprintf(buf, 2, "%*s%*s%*s", INT_MAX, "223", INT_MAX, "", 3, "bar"); Ah - good example. Would it be worth adding some clarification to our man page? The paragraphs discussing return values suggest that *printf() functions can only fail because of output or malloc errors. I guess two other cases are invalid wide characters and the return value not being representable as an int? David.