From owner-cvs-src@FreeBSD.ORG Sat Jan 20 21:33:03 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8756216A400; Sat, 20 Jan 2007 21:33:03 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 28F0313C457; Sat, 20 Jan 2007 21:33:03 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id l0KLVV5Z002971; Sat, 20 Jan 2007 14:31:36 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <45B28A31.4080604@samsco.org> Date: Sat, 20 Jan 2007 14:31:29 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: Alexander Leidinger References: <200701201932.l0KJWNST091647@repoman.freebsd.org> <45B271AD.9000503@samsco.org> <45B275F0.9030904@errno.com> <20070120222148.4f700711@Magellan.Leidinger.net> In-Reply-To: <20070120222148.4f700711@Magellan.Leidinger.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Sat, 20 Jan 2007 14:31:36 -0700 (MST) X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: Sam Leffler , src-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/compat/linprocfs linprocfs.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 21:33:03 -0000 Alexander Leidinger wrote: > Quoting Sam Leffler (Sat, 20 Jan 2007 12:05:04 -0800): > >> Scott Long wrote: >>> Alexander Leidinger wrote: >>>> netchild 2007-01-20 19:32:23 UTC >>>> >>>> FreeBSD src repository >>>> >>>> Modified files: >>>> sys/compat/linprocfs linprocfs.c Log: >>>> Fix tinderbox build on amd64. >>>> Revision Changes Path >>>> 1.104 +2 -2 src/sys/compat/linprocfs/linprocfs.c >>> Try the following instead: > > I try tomorrow. Thanks! > >>> --- linprocfs.c 20 Jan 2007 19:32:23 -0000 1.104 >>> +++ linprocfs.c 20 Jan 2007 19:46:29 -0000 >>> @@ -474,8 +474,8 @@ >>> state = 'R'; >>> >>> if (ratelimit == 0) { >>> - printf("linprocfs: don't know how to handle >>> unknown FreeBSD state %d/%jd, mapping to R\n", >>> - kp.ki_stat, (intmax_t)sizeof(linux_state)); >>> + printf("linprocfs: don't know how to handle >>> unknown FreeBSD state %d/%zd, mapping to R\n", >>> + kp.ki_stat, sizeof(linux_state)); >>> ++ratelimit; >>> } >>> } else >>> >>> >> Are the kernel prinf extensions documented anywhere (don't see 'em in >> printf(9))? I always forget and have to resort to the code... > > In the reply to the tinderbox mail I asked if there are some docs which > provide info which printf-identifier to use in which (common) > situation. I think this would be very useful (and can be provided in > the wiki if it doesn't fit into a man page). > > Bye, > Alexander. > I use printf.3 for reference. The kernel printf is only a subset, but it implements enough for the userland docs to be useful. For backup, I recommend using bde@ Scott