RE: sprintf with mips

"Manning, Gary L" <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <012863478A62344593C56CC9991EAC48014B6E3B@fmsmsx417.amr.corp.intel.com>
How is insertvalues defined?

Gary

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Christian Stalp
Sent: Wednesday, February 06, 2008 11:16 AM
To: [email protected]
Subject: sprintf with mips

Hello out there,
are there any known problems with sprintf under mips? I spend some time
to make this code runnable:

sprintf(insertvalues, " %d , ' %s ' , %d ", counter, "192.168.1.1",
mytraffic->num_frames);
printf("input-string: %s\n", insertvalues);

This works properly under x86 but if I run this under mips, the string
is empty! Even if the variable 'counter' is uninitialized or
'mytraffic->num_frames' (which is not the case, I can see the values if
I dump them directly with printf) there should be at least that
IP-address-string which should be inserted! This is weired. Has anybody
an idea what the problem is here?

Thank you.

Gruss Christian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.