From: Mike Frysinger Date: Wed, 11 Nov 2009 10:18:31 -0500 Subject: [U-Boot] [PATCH 2/5] smc911x: use dev->name in printfs In-Reply-To: <342197076db9a3f7be64c811e5230b24e8689f95.1257861401.git.mike@compulab.co.il> References: <342197076db9a3f7be64c811e5230b24e8689f95.1257861401.git.mike@compulab.co.il> Message-ID: <200911111018.31553.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 11 November 2009 03:03:01 Mike Rapoport wrote: > --- a/drivers/net/smc911x.h > +++ b/drivers/net/smc911x.h > @@ -480,8 +480,8 @@ static void smc911x_reset(struct eth_device *dev) > !(smc911x_reg_read(dev, PMT_CTRL) & PMT_CTRL_READY)) > udelay(10); > if (!timeout) { > - printf(DRIVERNAME > - ": timeout waiting for PM restore\n"); > + printf("%s: timeout waiting for PM restore\n", > + dev->name); > return; > } > } these changes in general look good, but if you're going to modify the common header, you need to update the eeprom code as well to set up the name field -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20091111/7c5d0578/attachment.pgp