os-util: optionally, return EOL time in os_release_support_ended()
This commit is contained in:
+1
-1
@@ -1385,7 +1385,7 @@ static int os_release_status(void) {
|
||||
label);
|
||||
}
|
||||
|
||||
if (support_end && os_release_support_ended(support_end, false) > 0)
|
||||
if (support_end && os_release_support_ended(support_end, /* quiet */ false, NULL) > 0)
|
||||
/* pretty_name may include the version already, so we'll print the version only if we
|
||||
* have it and we're not using pretty_name. */
|
||||
status_printf(ANSI_HIGHLIGHT_RED " !! " ANSI_NORMAL, 0,
|
||||
|
||||
+1
-1
@@ -4547,7 +4547,7 @@ char* manager_taint_string(const Manager *m) {
|
||||
if (clock_is_localtime(NULL) > 0)
|
||||
stage[n++] = "local-hwclock";
|
||||
|
||||
if (os_release_support_ended(NULL, true) > 0)
|
||||
if (os_release_support_ended(NULL, /* quiet= */ true, NULL) > 0)
|
||||
stage[n++] = "support-ended";
|
||||
|
||||
_cleanup_free_ char *destination = NULL;
|
||||
|
||||
Reference in New Issue
Block a user