[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    RE: kDebug format codes
From:       David Faure <David.Faure () cramersystems ! com>
Date:       2000-01-26 12:47:56
[Download RAW message or body]

> Hi.
> 
> I found myself typing a whole lot of 
> 
>   kDebugInfo("error: %s\n",strerror(errno)) 
> 
> lately. Thus, I made a patch to kdebug, making it accept kde-specific
> format codes. Currently, there's one: %r expands to strerror(errno).
> 
> Shall I commit this?
>     Geert Jansen                       

Out of interest, doesn't this slow it down a lot ?
You probably have to parse the format string (as opposed
to let sprintf do the job - well in addition to it)...

Perhaps better to simply add kDebugStrerror() ?

--
David Faure
faure@kde.org - KDE developer
david@mandrakesoft.com - Mandrake
david.faure@cramersystems.com - Cramer Systems

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic