From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA88E-0002Ca-5g for qemu-devel@nongnu.org; Wed, 13 Apr 2011 18:01:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QA88D-0001vZ-83 for qemu-devel@nongnu.org; Wed, 13 Apr 2011 18:01:50 -0400 Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:20408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA88C-0001vP-TH for qemu-devel@nongnu.org; Wed, 13 Apr 2011 18:01:49 -0400 From: Brad Hards Date: Thu, 14 Apr 2011 08:01:43 +1000 References: <1302687934-1287-1-git-send-email-bradh@frogmouth.net> <1302687934-1287-5-git-send-email-bradh@frogmouth.net> <4DA59C95.1020904@redhat.com> In-Reply-To: <4DA59C95.1020904@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104140801.43238.bradh@frogmouth.net> Subject: Re: [Qemu-devel] [PATCH 4/4] usb: use DPRINTF instead of printf for some simple cases List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hans de Goede On Wed, 13 Apr 2011 10:52:37 pm Hans de Goede wrote: > > @@ -359,7 +359,7 @@ static int usb_host_claim_interfaces(USBHostDevice > > *dev, int configuration) > > > > ret = ioctl(dev->fd, USBDEVFS_CLAIMINTERFACE,&interface); > > if (ret< 0) { > > if (errno == EBUSY) { > > > > - printf("husb: update iface. device already grabbed\n"); > > + DPRINTF("husb: update iface. device already grabbed\n"); > > > > } else { > > perror("husb: failed to claim interface"); > > } > > Nack, this is an error condition, so it should not be a DPRINTF. Then should it go to stderr instead of stdout? (There are other places in this code where we use fprintf(stderr, ...) to indicate error conditions.) Brad