lkml.org 
[lkml]   [2009]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 4/7] x86: memtest: adapt log messages
From
Date
On Fri, 2009-02-13 at 17:53 +0100, Ingo Molnar wrote:
> * Andreas Herrmann <andreas.herrmann3@amd.com> wrote:
>
> > +#ifdef CONFIG_X86_64
> > + printk(KERN_CONT "\n %010llx - %010llx pattern %016llx",
> > + t_start, t_start + t_size, cpu_to_be64(pattern));
> > +#else
> > + printk(KERN_CONT "\n %010llx - %010llx pattern %08x",
> > + t_start, t_start + t_size, cpu_to_be32(pattern));
> > +#endif
>
> hm, is there really no cleaner way to do this?
>

Can we use this:

+ printk(KERN_CONT "\n %010llx - %010llx pattern %016llx",
+ t_start, t_start + t_size, cpu_to_be64(pattern));

--
JSR





\
 
 \ /
  Last update: 2009-02-13 18:07    [from the cache]
©2003-2011 Jasper Spaans