[U-Boot] Question about Coding-Style

Wolfgang Denk wd at denx.de
Mon Feb 10 19:27:03 CET 2014


Dear Chris,

In message <52F8A706.7030103 at free.fr> you wrote:
>
> > 	"abc"
> > 	"def"
> >
> > Is a valid C string, and does not require a backslash. Do I miss
> > something?
> 
> Yes, you are of course correct: the result is the C string "abcdef" and =
> 
> the backslash in the original is superfluous.
> However a grep for "abcdef" in the source code won't match it :(
> This is why splitting strings like this is discouraged in the Linux kernel.

To be precise, the Linux CodingStyle refers to "user-visible strings
such as printk messages".

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
 The software required `Windows 95 or better', so I installed Linux.


More information about the U-Boot mailing list