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
  • include
  • linux
  • kdb.h
Find file BlameHistoryPermalink
  • Wei Li's avatar
    kdb: Remove the misfeature 'KDBFLAGS' · c893de12
    Wei Li authored May 21, 2020
    
    
    Currently, 'KDBFLAGS' is an internal variable of kdb, it is combined
    by 'KDBDEBUG' and state flags. It will be shown only when 'KDBDEBUG'
    is set, and the user can define an environment variable named 'KDBFLAGS'
    too. These are puzzling indeed.
    
    After communication with Daniel, it seems that 'KDBFLAGS' is a misfeature.
    So let's replace 'KDBFLAGS' with 'KDBDEBUG' to just show the value we
    wrote into. After this modification, we can use `md4c1 kdb_flags` instead,
    to observe the state flags.
    
    Suggested-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
    Signed-off-by: default avatarWei Li <liwei391@huawei.com>
    Link: https://lore.kernel.org/r/20200521072125.21103-1-liwei391@huawei.com
    
    
    [daniel.thompson@linaro.org: Make kdb_flags unsigned to avoid arithmetic
    right shift]
    Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
    c893de12
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7