projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d39cf80
)
Revert "throw_error(): Print error to stderr when being called internally"
author
David Zeuthen
<davidz@redhat.com>
Fri, 26 Aug 2011 17:09:40 +0000
(13:09 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Fri, 26 Aug 2011 17:09:40 +0000
(13:09 -0400)
This reverts commit
af80cd56e3b68cbc0de1fa1d03f9b2b2463aa514
.
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
14d323a
..
261e45e
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-5281,16
+5281,13
@@
throw_error (DBusGMethodInvocation *context,
va_list args;
char *message;
+ if (context == NULL)
+ return TRUE;
+
va_start (args, format);
message = g_strdup_vprintf (format, args);
va_end (args);
- if (context == NULL)
- {
- g_warning ("%s", message);
- return TRUE;
- }
-
error = g_error_new (ERROR, error_code, "%s", message);
dbus_g_method_return_error (context, error);
g_error_free (error);