<style>p{margin:0}img{border:0}</style>
<font style='font-size:12px'>Dear all,<br>
&nbsp;&nbsp;&nbsp; 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,<br>
void<br>
foolog(int pri, const char *func, struct mytest *ta, const char *fmt, ...)<br>
{<br>
&nbsp;&nbsp;&nbsp; va_list ap;<br>
<br>
&nbsp;&nbsp;&nbsp; va_start(ap, fmt);<br>
&nbsp;&nbsp;&nbsp; foologv(pri, func, ta, fmt, ap);<br>
&nbsp;&nbsp;&nbsp; va_end(ap);<br>
}<br>
<br>
void<br>
foologv(int pri, const char *func, struct mytest *ta,<br>
&nbsp;&nbsp;&nbsp; const char *fmt, va_list ap)<br>
{<br>
&nbsp;&nbsp;&nbsp; char *newfmt=fmt;<br>
<br>
&nbsp;&nbsp;&nbsp; if (pri &gt; loglevel)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>
&nbsp;<br>
 &nbsp;&nbsp;&nbsp; vsyslog(LOG_ALERT, newfmt, ap);<br>
}<br>
[..............]<br>
Thank you and regards,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  W.Target<br>
&nbsp;&nbsp;&nbsp; Jan-18-2007<br>
<style>p{margin:0}img{border:0}</style></font><br />
<br />
-------------------------------------------------------------------<br />
惠普商用台式机dc5750,高性能,低功耗!( <a href=http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2006/mail_zhuiyu_20061225.html target=_blank>http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2006/mail_zhuiyu_20061225.html</a> )<br />
<br />
===================================================================<br />
注册新浪2G免费邮箱( <a href=http://mail.sina.com.cn/chooseMode.html target=_blank>http://mail.sina.com.cn/chooseMode.html</a> )