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
  • drivers
  • rtc
  • interface.c
Find file BlameHistoryPermalink
  • Aaro Koskinen's avatar
    drivers/rtc/interface.c: __rtc_read_time: reduce log level · d0bddb51
    Aaro Koskinen authored Apr 16, 2015
    
    
    __rtc_read_time logs should be debug logs instead of error logs.
    
    For example, when the RTC clock is not set, it's not really useful
    to print a kernel error log every time someone tries to read the clock:
    
    	~ # hwclock -r
    	[  604.508263] rtc rtc0: read_time: fail to read
    	hwclock: RTC_RD_TIME: Invalid argument
    
    If there's a real error, it's likely that lower level or higher level
    code will tell it anyway. Make these logs debug logs, and also print
    the error code for the read failure.
    
    Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
    Acked-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d0bddb51
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7