From owner-svn-src-head@FreeBSD.ORG Tue May 3 07:46:02 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 9D267106566C; Tue, 3 May 2011 07:46:02 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB8D8FC14; Tue, 3 May 2011 07:46:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p437k2tj075485; Tue, 3 May 2011 07:46:02 GMT (envelope-from rodrigc@svn.freebsd.org) Received: (from rodrigc@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p437k2ve075483; Tue, 3 May 2011 07:46:02 GMT (envelope-from rodrigc@svn.freebsd.org) Message-Id: <201105030746.p437k2ve075483@svn.freebsd.org> From: Craig Rodrigues Date: Tue, 3 May 2011 07:46:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r221366 - head/lib/libstand 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: Tue, 03 May 2011 07:46:02 -0000 Author: rodrigc Date: Tue May 3 07:46:02 2011 New Revision: 221366 URL: http://svn.freebsd.org/changeset/base/221366 Log: Rename DEBUG macro to TFTP_DEBUG, to be more consistent with debug macros in other files. Modified: head/lib/libstand/tftp.c Modified: head/lib/libstand/tftp.c ============================================================================== --- head/lib/libstand/tftp.c Tue May 3 07:43:47 2011 (r221365) +++ head/lib/libstand/tftp.c Tue May 3 07:46:02 2011 (r221366) @@ -148,14 +148,14 @@ recvtftp(struct iodesc *d, void *pkt, ss printf("illegal tftp error %d\n", ntohs(t->th_code)); errno = EIO; } else { -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp-error %d\n", ntohs(t->th_code)); #endif errno = tftperrors[ntohs(t->th_code)]; } return (-1); default: -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp type %d not handled\n", ntohs(t->th_opcode)); #endif return (-1); @@ -303,7 +303,7 @@ tftp_read(struct open_file *f, void *add res = tftp_getnextblock(tftpfile); if (res) { /* no answer */ -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp: read error\n"); #endif return (res); @@ -319,7 +319,7 @@ tftp_read(struct open_file *f, void *add inbuffer = tftpfile->validsize - offinblock; if (inbuffer < 0) { -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp: invalid offset %d\n", tftpfile->off); #endif @@ -336,7 +336,7 @@ tftp_read(struct open_file *f, void *add if ((tftpfile->islastblock) && (count == inbuffer)) break; /* EOF */ } else { -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp: block %d not found\n", needblock); #endif return (EINVAL);