[U-Boot] [PATCH RESEND 1/2 v2] linux-compat: Use original kern_levels.h for kernel debug levels
Tom Rini
trini at konsulko.com
Mon Jun 13 16:13:23 CEST 2016
On Mon, Jun 13, 2016 at 12:36:04PM +0000, Alexey Brodkin wrote:
> Hi Tom,
>
> On Fri, 2016-06-10 at 15:20 -0400, Tom Rini wrote:
> > On Fri, Jun 10, 2016 at 03:42:30PM +0300, Alexey Brodkin wrote:
> > >
> > > Even currently in U-Boot we don't really use kernel debug levels
> > > we do have quite a lot of code that was copy-pasted from Linux kernel
> > > and so contains symbols like KERN_DEBUG and alike.
> > >
> > > We used to just define those symbols which is fine if it is used in
> > > constructions like:
> > > ----------------->8--------------
> > > printk(KERN_DEBUG "My debug message");
> > > ----------------->8--------------
> > >
> > > But in other places where the symbol gets passed as a separate
> > > argument (which we also have but luckily all of them are intself
> > > dummy stubs in U-Boot) that won't work.
> > >
> > > Now as a preparation to introduction of a real implementation of
> > > print_hex_dump() we need those symbols to be defined as something real
> > > so we're taking them as they are from Linux kernel.
> >
> > Contents are fine but you need to say what version of the kernel you get
> > it from.
>
> This is taken from 4.7-rc2.
>
> Given print_hex_dump() requires rework in a sense that we want to replace
> existing print_buffer() with it maybe we apply this patch because it has
> no dependencies on anything else?
>
> If you want I may resend it with added info about kernel version used for
> copy, or alternatively you may fixup it on patch application.
Please just update the commit message here for the next iteration on
this patch set, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160613/d6ad1ea3/attachment.sig>
More information about the U-Boot
mailing list