mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
meson: use status-unit-format-default=name in developer mode
I think developers are particularly unlikely to find the descriptions useful, and would benefit from being able to copy&paste unit names. Let's make this choice automatically.
This commit is contained in:
parent
79dec86add
commit
819c0dcbf5
@ -226,6 +226,9 @@ endif
|
|||||||
|
|
||||||
memory_accounting_default = get_option('memory-accounting-default')
|
memory_accounting_default = get_option('memory-accounting-default')
|
||||||
status_unit_format_default = get_option('status-unit-format-default')
|
status_unit_format_default = get_option('status-unit-format-default')
|
||||||
|
if status_unit_format_default == 'auto'
|
||||||
|
status_unit_format_default = conf.get('BUILD_MODE_DEVELOPER') == 1 ? 'name' : 'description'
|
||||||
|
endif
|
||||||
|
|
||||||
conf.set_quoted('BINFMT_DIR', binfmtdir)
|
conf.set_quoted('BINFMT_DIR', binfmtdir)
|
||||||
conf.set_quoted('BOOTLIBDIR', bootlibdir)
|
conf.set_quoted('BOOTLIBDIR', bootlibdir)
|
||||||
|
@ -214,7 +214,7 @@ option('extra-net-naming-schemes', type : 'string',
|
|||||||
option('default-net-naming-scheme', type : 'string', value : 'latest',
|
option('default-net-naming-scheme', type : 'string', value : 'latest',
|
||||||
description : 'default net.naming-scheme= value')
|
description : 'default net.naming-scheme= value')
|
||||||
option('status-unit-format-default', type : 'combo',
|
option('status-unit-format-default', type : 'combo',
|
||||||
choices : ['description', 'name', 'combined'],
|
choices : ['auto', 'description', 'name', 'combined'],
|
||||||
description : 'use unit name or description in messages by default')
|
description : 'use unit name or description in messages by default')
|
||||||
option('time-epoch', type : 'integer', value : '-1',
|
option('time-epoch', type : 'integer', value : '-1',
|
||||||
description : 'time epoch for time clients')
|
description : 'time epoch for time clients')
|
||||||
|
Loading…
Reference in New Issue
Block a user