]> git.baikalelectronics.ru Git - kernel.git/commit
kdb: Remove the misfeature 'KDBFLAGS'
authorWei Li <liwei391@huawei.com>
Thu, 21 May 2020 07:21:25 +0000 (15:21 +0800)
committerDaniel Thompson <daniel.thompson@linaro.org>
Tue, 2 Jun 2020 14:15:46 +0000 (15:15 +0100)
commitdb9082d80b1ea46ea28a20816010a5824cead5a9
tree964ba06e688298b82e0b23bfc73c7469fb636f8a
parentd359a77422e6cb0331f9e9a4d223688b4094433c
kdb: Remove the misfeature 'KDBFLAGS'

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: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Wei 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: Daniel Thompson <daniel.thompson@linaro.org>
include/linux/kdb.h
kernel/debug/kdb/kdb_main.c