Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • drivers
  • input
  • evdev.c
Find file BlameHistoryPermalink
  • Geert Uytterhoeven's avatar
    Input: evdev - fix printf() format for sizeof · c85e2031
    Geert Uytterhoeven authored Aug 19, 2008
    commit f2afa771
    
     ("Input: paper over a bug in
    Synaptics X driver") introduced a compiler warning on 64-bit platforms, as
    sizeof() returns a size_t, not an (unsigned) int:
    
    | drivers/input/evdev.c: In function 'handle_eviocgbit':
    | drivers/input/evdev.c:684: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
    
    Use the proper `z' modifier for size_t, and make the printf() formats for the
    sizes unsigned while we're at it.
    
    Signed-off-by: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
    Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
    c85e2031
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7