X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Funit-printf.c;h=ffc203dd921163ecdc03dda39f93bee8020de5f6;hp=caf51259d2d18a72eefabb5e69cf5a5bfd7bfb41;hb=6aaa8c2f783cd1b3ac27c5ce40625d032e7e3d71;hpb=61ad59b1314060958c6e1b1b480074e230b6ed3e diff --git a/src/core/unit-printf.c b/src/core/unit-printf.c index caf51259d..ffc203dd9 100644 --- a/src/core/unit-printf.c +++ b/src/core/unit-printf.c @@ -268,6 +268,7 @@ char *unit_full_printf(Unit *u, const char *format) { * %m the machine ID of the running system * %H the host name of the running system * %b the boot ID of the running system + * %v `uname -r` of the running system */ const Specifier table[] = { @@ -291,7 +292,8 @@ char *unit_full_printf(Unit *u, const char *format) { { 'm', specifier_machine_id, NULL }, { 'H', specifier_host_name, NULL }, { 'b', specifier_boot_id, NULL }, - { 0, NULL, NULL } + { 'v', specifier_kernel_release, NULL }, + {} }; assert(format);