public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS]  diag_printf refuses to print ANSI escape sequences?
@ 2007-05-26 16:38 Grant Edwards
  2007-05-26 20:19 ` Sergei Gavrikov
  0 siblings, 1 reply; 12+ messages in thread
From: Grant Edwards @ 2007-05-26 16:38 UTC (permalink / raw)
  To: ecos-discuss

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.

-- 
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-05-29 14:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-26 16:38 [ECOS] diag_printf refuses to print ANSI escape sequences? Grant Edwards
2007-05-26 20:19 ` Sergei Gavrikov
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

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).