[bug #47550] Linux GPIO broken

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #47550] Linux GPIO broken

Kevin Cuzner-2
URL:
  <http://savannah.nongnu.org/bugs/?47550>

                 Summary: Linux GPIO broken
                 Project: AVR Downloader/UploaDEr
            Submitted by: None
            Submitted on: Sun 27 Mar 2016 07:24:40 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Valentin Milea
        Originator Email: [hidden email]
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

snprintf() is being used in linuxgpio.c to convert unsigned GPIO numbers. A
recent commit has changed the format from "%d" to "%ud". "%u" is a valid
conversion specifier, while the trailing 'd' ends up being printed (e.g. '17d'
instead of '17').

This causes GPIO setup to fail:
Can't export GPIO 17, already exported/busy?: Invalid argument

Please replace "%ud" with "%u".




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?47550>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

[bug #47550] Linux GPIO broken

Kevin Cuzner-2
Update of bug #47550 (project avrdude):

                  Status:                    None => Fixed                  
             Assigned to:                    None => joerg_wunsch          
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Ouch.  Thanks for reporting!

Fixed in r1388.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?47550>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

[bug #47550] Linux GPIO broken

Kevin Cuzner-2
Follow-up Comment #2, bug #47550 (project avrdude):

Hello Joerg,

I cannot help but notice that the latest release of avrdude (6.3) still has
this issue.
Is there a reason no update was ever put out?
I'd really like to see this work for linuxgpio to work correctly out of the
box.

At this moment I'm trying to resurrect a arduino nano that has no bootloader,
and I got it to work using this information, but still...

With kind regards,

Floris Groenendijk

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?47550>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev