NetBSD Problem Report #51935

From  Wed Feb  1 17:54:14 2017
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id C6A9A7A287
	for <>; Wed,  1 Feb 2017 17:54:13 +0000 (UTC)
Message-Id: <>
Date: Wed,  1 Feb 2017 17:54:12 +0000 (UTC)
Subject: sys/arch/sun68k/stand/libsa/promdev.c:83: bad call to printf ?
X-Send-Pr-Version: www-1.0

>Number:         51935
>Category:       port-sun3
>Synopsis:       sys/arch/sun68k/stand/libsa/promdev.c:83: bad call to printf ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-sun3-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 01 17:55:00 +0000 2017
>Closed-Date:    Sun Feb 05 09:02:52 +0000 2017
>Last-Modified:  Sun Feb 05 09:02:52 +0000 2017
>Originator:     David Binderman
>Release:        cvs-20170201
src/sys/arch/sun68k/stand/libsa/promdev.c:83]: (warning) printf format string requires 1 parameter but 2 are given.

Source code is

        for (i = 0; i < dip->d_stdcount; i++)
                   i, dip->d_stdaddrs[0]);

Maybe better code

        for (i = 0; i < dip->d_stdcount; i++)
                   i, dip->d_stdaddrs[0]);




From: "Christos Zoulas" <>
Subject: PR/51935 CVS commit: src/sys/arch/sun68k/stand/libsa
Date: Wed, 1 Feb 2017 13:24:22 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Wed Feb  1 18:24:22 UTC 2017

 Modified Files:
 	src/sys/arch/sun68k/stand/libsa: promdev.c

 Log Message:
 PR/51935: David Binderman: bad call to printf
 - fix debugging printfs in general.
 - KNF

 To generate a diff of this commit:
 cvs rdiff -u -r1.6 -r1.7 src/sys/arch/sun68k/stand/libsa/promdev.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-When: Wed, 01 Feb 2017 19:12:52 +0000
patch was applied

From: David Binderman <>
To: "" <>,
	"" <>
Subject: Re: port-sun3/51935
Date: Sun, 5 Feb 2017 08:55:58 +0000

 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable

 Hello there,

 This bug looks fixed to me. I think someone needs to change

 the status from Feedback to Fixed.


 David Binderman

 Content-Type: text/html; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable

 <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
 <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
 n-bottom:0;} --></style>
 <body dir=3D"ltr">
 <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
 -family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
 <p>Hello there,</p>
 <p>This bug looks fixed to me. I think someone needs to change</p>
 <p>the status from Feedback to Fixed.</p>
 <p>David Binderman</p>


State-Changed-From-To: feedback->closed
State-Changed-When: Sun, 05 Feb 2017 09:02:52 +0000
Confirmed fixed, thanks.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.