public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <w3sg@SoftHome.net>
To: Grant Edwards <grante@visi.com>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS]  diag_printf refuses to print ANSI escape sequences?
Date: Sat, 26 May 2007 20:19:00 -0000	[thread overview]
Message-ID: <20070526163810.GA13155@ubuntu> (raw)
In-Reply-To: <f39j6e$9bk$1@sea.gmane.org>

On Sat, May 26, 2007 at 03:19:42PM +0000, Grant Edwards wrote:
> In the "not a big deal" department...
> 
> I'm trying to send ANSI escape sequences using diag_printf, and
> diag_printf refuses.  If I put the escape character in the format
> string it says 
> 
>  <Bad format string: 8055F18 : 0 0 2 807F0D8 DDD9BFFD FB93FFDC 8055758
>  FB93FFDC>
> 
> If there's an escape character in a string that is to be printed using
> the "%s" format, it says: 
> 
>  <Not a string: 0x8055F20>
> 
> I understand that it's useful to attempt to avoid printing random
> binary garbage, but I would think that ASCII ESC might be allowed in
> strings.
>  
> I've found that insterting the escape characters using %c works, but
> that's a bit awkward.
 
There are nice diag_dump_buf* functions in the eCos infra layer
(cyg/infra/diag.h).  I do use that.

-- Sergei

> -- 
> Grant Edwards                   grante             Yow!  My LESLIE GORE record
>                                   at               is BROKEN...
>                                visi.com            
> 
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  reply	other threads:[~2007-05-26 16:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-26 16:38 Grant Edwards
2007-05-26 20:19 ` Sergei Gavrikov [this message]
2007-05-26 22:56   ` [ECOS] " Grant Edwards
2007-05-27 10:12     ` Gary Thomas
2007-05-27 14:42     ` Sergei Gavrikov
2007-05-28  5:33       ` Grant Edwards
2007-05-28 15:28         ` Sergei Gavrikov
2007-05-28 20:22           ` Paul D. DeRocco
2007-05-28 20:33             ` Sergei Gavrikov
2007-05-29  4:50               ` Paul D. DeRocco
2007-05-29  9:57         ` Nick Garnett
2007-05-29 17:05           ` Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070526163810.GA13155@ubuntu \
    --to=w3sg@softhome.net \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=grante@visi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).