From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 29 Sep 2008 17:02:36 +0000 Subject: Re: Debug build fails Message-Id: <1222707756.20695.5.camel@lgn.site> List-Id: References: <48E1074D.5010703@tuffmail.co.uk> In-Reply-To: <48E1074D.5010703@tuffmail.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org On Mon, 2008-09-29 at 17:50 +0100, Alan Jenkins wrote: > udevadm-info.c: In function ‘print_all_attributes’: > udevadm-info.c:65: error: ‘udev’ undeclared (first use in this function) > udevadm-info.c:65: error: (Each undeclared identifier is reported only once > udevadm-info.c:65: error: for each function it appears in.) > udevadm-info.c:72: error: ‘info’ undeclared (first use in this function) > > > The dbg() macro sucks. The disabled version should be an inline > function, so it catches these errors on normal builds. Sounds good. > Obviously the callers need to be fixed before this can be applied. Done. > Allow compiler to check dbg() arguments on non-debug builds Applied. Thanks, Kay