projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55904b4
)
config parser: more debug output in embedded tests
author
Patrick Ohly
<patrick.ohly@intel.com>
Wed, 30 Jul 2014 07:50:23 +0000
(09:50 +0200)
committer
Patrick Ohly
<patrick.ohly@intel.com>
Wed, 30 Jul 2014 07:50:23 +0000
(09:50 +0200)
When loading valid or invalid config files and getting an error,
print the error as debug output. This is useful to debug the tests
without having to use a interactivedebugger.
bus/config-parser.c
patch
|
blob
|
history
diff --git
a/bus/config-parser.c
b/bus/config-parser.c
index
a6a8e1c
..
8cdeb4f
100644
(file)
--- a/
bus/config-parser.c
+++ b/
bus/config-parser.c
@@
-2818,6
+2818,8
@@
do_load (const DBusString *full_path,
dbus_error_init (&error);
parser = bus_config_load (full_path, TRUE, NULL, &error);
+ if (dbus_error_is_set (&error))
+ _dbus_verbose ("Failed to load file: %s\n", error.message);
if (parser == NULL)
{
_DBUS_ASSERT_ERROR_IS_SET (&error);