Page 1 of 1

Verbose output false from cli

Posted: Tue Aug 04, 2015 1:56 am
by erik
Hello,

I'm trying to get some values from verbose output and I wondered why it do not work.

Now I have seen that values that I have set by myself are false displayed.
For example by setting vga2 gain to 22 dB it displays.

[VERBOSE @ nios_access.c:409] nios_lms6_read: Read 0x45 from addr 0xb0
[VERBOSE @ nios_access.c:421] nios_lms6_write: Wrote 0x45 to addr 0xb0
[VERBOSE @ nios_access.c:409] nios_lms6_read: Read 0x45 from addr 0xb0

But it means

Read 0xb0 from addr 0x45
Wrote 0xb0 to addr 0x45
Read 0xb0 from addr 0x45

So the value and address is changed. for someone who trusts the output without checking in the datasheet thats not very helpfull.

Maybe I have interpreted it false by myself but I don't think so.

Greetings,

Erik

Re: Verbose output false from cli

Posted: Tue Aug 04, 2015 6:20 am
by jynik
Hi Erik,

Good catch - sorry for the confusion. I registered issue 415 and will commit a fix today.

Re: Verbose output false from cli

Posted: Tue Aug 04, 2015 11:57 pm
by erik
Good Morning,

I have catched another failure.
It also appears to verbose output.
The functions nios__expansion_gpio_read and write are everytime printing 0x08x.
It's because a missing % sign in the nios_access.c.
Think you will see it.

Re: Verbose output false from cli

Posted: Wed Aug 05, 2015 7:09 am
by jynik
Thanks, erik!

I'll file issue 416 to track this defect and push a fix momentarily.