Skip to content

Conversation

@ulfalizer
Copy link
Contributor

@ulfalizer ulfalizer commented Jun 23, 2018

It's common for people to put in a default n "just in case", because
it might not be obvious that bool symbols implicitly default to n. To
make it clearer, mention the implicit default value on the reference
pages of symbols without defaults.

Also mention that choices without defaults default to the first
(visible) symbol in the choice.

Note: Adding to the confusion, Kconfig used to generate a
# CONFIG_FOO is not set line for default n, but no output when there
was no default. I changed that recently in both the C tools and
Kconfiglib. There's no output either case now (unless the symbol is
visible).

@ulfalizer ulfalizer requested a review from dbkinder as a code owner June 23, 2018 09:40
@ulfalizer
Copy link
Contributor Author

CC @carlescufi

@ulfalizer ulfalizer force-pushed the genrest-implicit-defaults branch 2 times, most recently from 057c5ba to 57ecc6b Compare June 23, 2018 09:44
It's common for people to put in a 'default n' "just in case", because
it might not be obvious that bool symbols implicitly default to 'n'. To
make it clearer, mention the implicit default value on the reference
pages of symbols without defaults.

Also mention that choices without defaults default to the first
(visible) symbol in the choice.

Note: Adding to the confusion, Kconfig used to generate a
'# CONFIG_FOO is not set' line for 'default n', but no output when there
was no default. I changed that recently in both the C tools and
Kconfiglib. There's no output either case now (unless the symbol is
visible).

Signed-off-by: Ulf Magnusson <[email protected]>
@ulfalizer ulfalizer force-pushed the genrest-implicit-defaults branch from 57ecc6b to 4197819 Compare June 23, 2018 10:01
@codecov-io
Copy link

Codecov Report

Merging #8540 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8540   +/-   ##
=======================================
  Coverage   63.92%   63.92%           
=======================================
  Files         427      427           
  Lines       41100    41100           
  Branches     6939     6939           
=======================================
  Hits        26275    26275           
  Misses      11678    11678           
  Partials     3147     3147

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54d1a60...4197819. Read the comment docs.

@carlescufi carlescufi self-requested a review June 25, 2018 08:29
Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carlescufi carlescufi merged commit 35ec18a into zephyrproject-rtos:master Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants