va_list on PowerPC linux.

onetarget at sina.com onetarget at sina.com
Thu Jan 18 20:30:27 EST 2007


Dear all,
    I am now using ELDK3.1.1 and linux-2.4.25 on MPC8270
board. I met a problem, that is an application will get various
segmentation faults, but the application will work properly on
ARM/X86/MIPS, the followings is the codes segment,
void
foolog(int pri, const char *func, struct mytest *ta, const char *fmt, ...)
{
    va_list ap;
    va_start(ap, fmt);
    foologv(pri, func, ta, fmt, ap);
    va_end(ap);
}
void
foologv(int pri, const char *func, struct mytest *ta,
    const char *fmt, va_list ap)
{
    char *newfmt=fmt;
    if (pri > loglevel)
        return;
 
    vsyslog(LOG_ALERT, newfmt, ap);
}
[..............]
Thank you and regards,
        W.Target
    Jan-18-2007

-------------------------------------------------------------------
惠普商用台式机dc5750,高性能,低功耗!( http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2006/mail_zhuiyu_20061225.html )

===================================================================
注册新浪2G免费邮箱( http://mail.sina.com.cn/chooseMode.html )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070118/da157854/attachment.htm 


More information about the Linuxppc-embedded mailing list