Use __FUNCTION__ instead of __func__, see
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Function-Names.html

On Thu, Aug 4, 2011 at 8:04 AM, Simon Chan <[email protected]> wrote:

> Hi all,
>
> Now I add debug info for my overlay hal module.
>
> #define LOG_FUNC_NAME LOGD("%s",  __func__)
>
> the output is as seen below,
>
> D/Overlay (  966): int overlay_setParameter(overlay_control_device_t*,
> overlay_t*, int, int)
> D/Overlay (  966): int overlay_commit(overlay_control_device_t*,
> overlay_t*)
>
> It's certainly not the thing I expect.
>
> I don't know whether it's the intended behavior or I have made
> something wrong? Thanks!
>
>
> Regards,
> Simon
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to