Menu

#5 stdout/stderr inconsistencies....

2.0
accepted
nobody
None
2020-08-30
2015-08-25
Roger Wolff
No

dfu-util will log MOST debug things on stderr (when running with -v -v -v) with just a few exceptions on stdout. (I redirected stdout to a file for bug #4, and ended up with only a few bytes).

Discussion

  • Tormod Volden

    Tormod Volden - 2015-08-30
    • status: open --> accepted
     
  • Tormod Volden

    Tormod Volden - 2015-08-30

    Thanks for the note. Can you please post what you got on stdout? I will also take a look myself.

     
  • Roger Wolff

    Roger Wolff - 2015-09-07

    stdout has:

    Erasing page size 2048 at address 0x0800c000, page starting at 0x0800c000
    Poll timeout 40 ms
    Poll timeout 40 ms
    Download from image offset 0000c000 to memory 0800c000-0800c7ff, size 2048
    Setting address pointer to 0x0800c000
    Poll timeout 72 ms
    Poll timeout 72 ms
    Erasing page size 2048 at address 0x0800c800, page starting at 0x0800c800
    Poll timeout 40 ms
    Poll timeout 40 ms
    Download from image offset 0000c800 to memory 0800c800-0800cfff, size 2048
    Setting address pointer to 0x0800c800
    Poll timeout 72 ms
    Poll timeout 72 ms

     
  • Tormod Volden

    Tormod Volden - 2015-09-11

    It seems that dfu-util prints all information/verbose/debug to stdout, unless there is an error or warning. OTOH libusb might print debug output to stderr.

    For now, use e.g > file.log 2>&1

     

    Last edit: Tormod Volden 2015-09-11
  • Tormod Volden

    Tormod Volden - 2016-01-27
    • Milestone: 1.0 --> 2.0
     

Anonymous
Anonymous

Add attachments
Cancel