From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-iw0-f177.google.com ([209.85.214.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QinqK-0006Im-G1 for barebox@lists.infradead.org; Mon, 18 Jul 2011 13:26:44 +0000 Received: by iwn35 with SMTP id 35so3456104iwn.36 for ; Mon, 18 Jul 2011 06:26:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1310994370-28444-1-git-send-email-antonynpavlov@gmail.com> References: <1310994370-28444-1-git-send-email-antonynpavlov@gmail.com> Date: Mon, 18 Jul 2011 15:26:33 +0200 Message-ID: From: Franck JULLIEN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1316204224==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v2 1/2] debug_ll.h: add PUTS_LL() function To: Antony Pavlov Cc: barebox@lists.infradead.org --===============1316204224== Content-Type: multipart/alternative; boundary=20cf303f6a6ca9aac204a857f2c5 --20cf303f6a6ca9aac204a857f2c5 Content-Type: text/plain; charset=ISO-8859-1 2011/7/18 Antony Pavlov > Signed-off-by: Antony Pavlov > --- > include/debug_ll.h | 13 +++++++++++++ > 1 files changed, 13 insertions(+), 0 deletions(-) > > diff --git a/include/debug_ll.h b/include/debug_ll.h > index e99ae7d..6b1b174 100644 > --- a/include/debug_ll.h > +++ b/include/debug_ll.h > @@ -35,9 +35,22 @@ > ch = ((v >> (i*4)) & 0xf);\ > ch += (ch >= 10) ? 'a' - 10 : '0';\ > PUTC_LL (ch); }}) > + > +static __inline__ void PUTS_LL(char * str) > +{ > + while (*str) { > + if (*str == '\n') { > + PUTC_LL('\r'); > + } > + PUTC_LL(*str); > + str++; > + } > +} > + > #else > # define PUTC_LL(c) do {} while (0) > # define PUTHEX_LL(v) do {} while (0) > +# define PUTS_LL(c) do {} while (0) > > #endif > > -- > 1.7.5.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox Hello, Could we add an entry for CONFIG_DEBUG_LL in the debugging menu (common/Kconfig) ? This file makes barebox not compile if we are not on arm arch due to the inclusion. I know it's not related to your patch :) Franck. --20cf303f6a6ca9aac204a857f2c5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2011/7/18 Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
=A0include/debug_ll.h | =A0 13 +++++++++++++
=A01 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/include/debug_ll.h b/include/debug_ll.h
index e99ae7d..6b1b174 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -35,9 +35,22 @@
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ch =3D ((v >>= ; (i*4)) & 0xf);\
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ch +=3D (ch >= =3D 10) ? 'a' - 10 : '0';\
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PUTC_LL (ch); }})<= br> +
+static __inline__ void PUTS_LL(char * str)
+{
+ =A0 =A0 =A0 while (*str) {
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (*str =3D=3D '\n') {
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PUTC_LL('\r');
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 }
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 PUTC_LL(*str);
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 str++;
+ =A0 =A0 =A0 }
+}
+
=A0#else
=A0# define PUTC_LL(c) do {} while (0)
=A0# define PUTHEX_LL(v) do {} while (0)
+# define PUTS_LL(c) do {} while (0)

=A0#endif

--
1.7.5.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org<= /a>
http://lists.infradead.org/mailman/listinfo/barebox


Hello,

Could we add an entry for CONFIG_DEBUG_LL in the debugging menu (common/Kco= nfig) ?
This file makes barebox not compile if we are not on arm = arch due to the <mach/debug_ll.h> inclusion.

I know it's not related to your patch :)

= Franck.

--20cf303f6a6ca9aac204a857f2c5-- --===============1316204224== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1316204224==--