about summary refs log tree commit diff
path: root/shared/systemd/src/basic/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/systemd/src/basic/log.h')
-rw-r--r--shared/systemd/src/basic/log.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/systemd/src/basic/log.h b/shared/systemd/src/basic/log.h
index b81c93a5..3725b08f 100644
--- a/shared/systemd/src/basic/log.h
+++ b/shared/systemd/src/basic/log.h
@@ -59,9 +59,12 @@ void log_show_color(bool b);
 bool log_get_show_color(void) _pure_;
 void log_show_location(bool b);
 bool log_get_show_location(void) _pure_;
+void log_show_time(bool b);
+bool log_get_show_time(void) _pure_;
 
 int log_show_color_from_string(const char *e);
 int log_show_location_from_string(const char *e);
+int log_show_time_from_string(const char *e);
 
 LogTarget log_get_target(void) _pure_;
 #if 0 /* NM_IGNORED */
@@ -77,7 +80,7 @@ int log_get_max_level_realm(LogRealm realm) _pure_;
 
 #if 0 /* NM_IGNORED */
 assert_cc(STRLEN(__FILE__) > STRLEN(RELATIVE_SOURCE_PATH) + 1);
-#define PROJECT_FILE (__FILE__ + STRLEN(RELATIVE_SOURCE_PATH) + 1)
+#define PROJECT_FILE (&__FILE__[STRLEN(RELATIVE_SOURCE_PATH) + 1])
 #endif /* NM_IGNORED */
 #define PROJECT_FILE __FILE__