Re: [Qemu-devel] Printing bogus values in ne2000_asic_ioport_read()/ ne2000_receive()

2006-03-04 Thread Joseph Stewart
Change the function argument from signed to unsigned and see it printf handles prints the values correctly. I.E.static void print_packet(unsigned char *s, int len) ...-joe On 2/25/06, Umamaheswararao Karyampudi <[EMAIL PROTECTED]> wrote: Hi,I am using QEMU in one of my research projects. Ilanded in

Re: [Qemu-devel] Printing bogus values in ne2000_asic_ioport_read()/ ne2000_receive()

2006-03-04 Thread Alessandro Iurlano
Il giorno sab, 25/02/2006 alle 10.29 -0800, Umamaheswararao Karyampudi ha scritto: > In ne2000_receive(), I copied the packet received to a > static char [] and printed the packet using > static void print_packet(char *s, int len) > { > int i,j; > for (i=0;i if (i%20 == 0) > pr

[Qemu-devel] Printing bogus values in ne2000_asic_ioport_read()/ ne2000_receive()

2006-03-03 Thread Umamaheswararao Karyampudi
Hi,I am using QEMU in one of my research projects. I landed in a problem where I see bogus numbers being printed when I printed the packet/each word that is received from ne2000.In ne2000_receive(), I copied the packet received to a static char [] and printed the packet using static void print_pack

Re: [Qemu-devel] Printing bogus values in ne2000_asic_ioport_read()/ ne2000_receive()

2006-03-03 Thread Brian Wheeler
On Sun, 2006-02-26 at 10:01 -0800, Umamaheswararao Karyampudi wrote: > Hi, > I am using QEMU in one of my research projects. I > landed in a problem where I see bogus numbers being > printed when I printed the packet/each word that is > received from ne2000. > > In ne2000_receive(), I copied the p

[Qemu-devel] Printing bogus values in ne2000_asic_ioport_read()/ ne2000_receive()

2006-03-01 Thread Umamaheswararao Karyampudi
Hi, I am using QEMU in one of my research projects. I landed in a problem where I see bogus numbers being printed when I printed the packet/each word that is received from ne2000. In ne2000_receive(), I copied the packet received to a static char [] and printed the packet using static void print_