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
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Reply via email to