[beast: 7/57] SFI: bcore: prefix info() output with program name
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 7/57] SFI: bcore: prefix info() output with program name
- Date: Sun, 23 Jul 2017 09:58:23 +0000 (UTC)
commit 5754ba410401c74a559eb3852b996588ba6dddb5
Author: Tim Janik <timj gnu org>
Date: Thu Jul 13 23:16:42 2017 +0200
SFI: bcore: prefix info() output with program name
Signed-off-by: Tim Janik <timj gnu org>
sfi/bcore.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/sfi/bcore.cc b/sfi/bcore.cc
index 9f58f3e..ee54e57 100644
--- a/sfi/bcore.cc
+++ b/sfi/bcore.cc
@@ -56,9 +56,11 @@ diagnostic (char kind, const std::string &message)
String prefix;
switch (kind) {
case 'W': prefix = "WARNING: "; break;
- case 'I': prefix = "INFO: "; break;
case 'D': prefix = "DEBUG: "; break;
case ' ': prefix = ""; break;
+ case 'I':
+ prefix = program_alias() + ": ";
+ break;
case 'F':
prefix = program_alias() + ": FATAL: ";
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]