lkml.org 
[lkml]   [2010]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 14/14] sound/ppc: Use printf extension %pR for struct resource
At Fri, 12 Nov 2010 13:38:04 -0800,
Joe Perches wrote:
>
> Using %pR standardizes the struct resource output.
>
> Signed-off-by: Joe Perches <joe@perches.com>

Applied now. Thanks.


Takashi


> ---
> sound/ppc/pmac.c | 12 ++++--------
> 1 files changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c
> index 8508117..b47cfd4 100644
> --- a/sound/ppc/pmac.c
> +++ b/sound/ppc/pmac.c
> @@ -1228,10 +1228,8 @@ int __devinit snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return)
> chip->rsrc[i].start + 1,
> rnames[i]) == NULL) {
> printk(KERN_ERR "snd: can't request rsrc "
> - " %d (%s: 0x%016llx:%016llx)\n",
> - i, rnames[i],
> - (unsigned long long)chip->rsrc[i].start,
> - (unsigned long long)chip->rsrc[i].end);
> + " %d (%s: %pR)\n",
> + i, rnames[i], &chip->rsrc[i]);
> err = -ENODEV;
> goto __error;
> }
> @@ -1256,10 +1254,8 @@ int __devinit snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return)
> chip->rsrc[i].start + 1,
> rnames[i]) == NULL) {
> printk(KERN_ERR "snd: can't request rsrc "
> - " %d (%s: 0x%016llx:%016llx)\n",
> - i, rnames[i],
> - (unsigned long long)chip->rsrc[i].start,
> - (unsigned long long)chip->rsrc[i].end);
> + " %d (%s: %pR)\n",
> + i, rnames[i], &chip->rsrc[i]);
> err = -ENODEV;
> goto __error;
> }
> --
> 1.7.3.1.g432b3.dirty
>


\
 
 \ /
  Last update: 2010-11-22 07:47    [W:0.012 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site