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
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • checkpatch.pl
Find file BlameHistoryPermalink
  • Joe Perches's avatar
    checkpatch: fix duplicate invalid vsprintf pointer extension '%p<foo>' messages · ffe07513
    Joe Perches authored Jul 13, 2018
    Multiline statements with invalid %p<foo> uses produce multiple
    warnings.  Fix that.
    
    e.g.:
    
    $ cat t_block.c
    void foo(void)
    {
    	MY_DEBUG(drv->foo,
    		 "%pk",
    		 foo->boo);
    }
    
    $ ./scripts/checkpatch.pl -f t_block.c
    WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
    #1: FILE: t_block.c:1:
    +void foo(void)
    
    WARNING: Invalid vsprintf pointer extension '%pk'
    #3: FILE: t_block.c:3:
    +	MY_DEBUG(drv->foo,
    +		 "%pk",
    +		 foo->boo);
    
    WARNING: Invalid vsprintf pointer extension '%pk'
    #3: FILE: t_block.c:3:
    +	MY_DEBUG(drv->foo,
    +		 "%pk",
    +		 foo->boo);
    
    total: 0 errors, 3 warnings, 6 lines checked
    
    NOTE: For some of the reported defects, checkpatch may be able to
          mechanically convert to the typical style using --fix or --fix-inplace.
    
    t_block.c has style problems, please review.
    
    NOTE: If any of the errors are false positives, please report
          them to the maintainer, see CHECKPATCH in MAINTAINERS.
    
    Link: http://lkml.kernel.org/r/9e8341bbe4c9877d159cb512bb701043cbfbb10b.camel@perches.com
    
    
    Signed-off-by: default avatarJoe Perches <joe@perches.com>
    Cc: "Tobin C. Harding" <me@tobin.cc>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    ffe07513
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7