summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-11-12 09:58:36 +0000
committerRichard Hughes <richard@hughsie.com>2008-11-12 09:58:36 +0000
commit35bd038ac79957d22cea6c9b5b50f1f003c427d7 (patch)
tree9a3c383c53fa1134ce7e067a89175b2b2d8c92e2 /tools
parent0f560f820e7ee27b9849d9178686a9b8557bbeaa (diff)
downloadupower-35bd038ac79957d22cea6c9b5b50f1f003c427d7.tar.gz
trivial cleanups of davidz patch -- no functional changes
Diffstat (limited to 'tools')
-rw-r--r--tools/dkp-tool.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/dkp-tool.c b/tools/dkp-tool.c
index b774044..3881516 100644
--- a/tools/dkp-tool.c
+++ b/tools/dkp-tool.c
@@ -44,7 +44,7 @@ static gboolean opt_monitor_detail = FALSE;
static void
dkp_tool_device_added_cb (DkpClient *client, const DkpClientDevice *device, gpointer user_data)
{
- g_print ("added: %s\n", dkp_client_device_get_object_path (device));
+ g_print ("device added: %s\n", dkp_client_device_get_object_path (device));
if (opt_monitor_detail) {
dkp_client_device_print (device);
g_print ("\n");
@@ -57,7 +57,7 @@ dkp_tool_device_added_cb (DkpClient *client, const DkpClientDevice *device, gpoi
static void
dkp_tool_device_changed_cb (DkpClient *client, const DkpClientDevice *device, gpointer user_data)
{
- g_print ("changed: %s\n", dkp_client_device_get_object_path (device));
+ g_print ("device changed: %s\n", dkp_client_device_get_object_path (device));
if (opt_monitor_detail) {
/* TODO: would be nice to just show the diff */
dkp_client_device_print (device);
@@ -71,7 +71,7 @@ dkp_tool_device_changed_cb (DkpClient *client, const DkpClientDevice *device, gp
static void
dkp_tool_device_removed_cb (DkpClient *client, const DkpClientDevice *device, gpointer user_data)
{
- g_print ("removed: %s\n", dkp_client_device_get_object_path (device));
+ g_print ("device removed: %s\n", dkp_client_device_get_object_path (device));
if (opt_monitor_detail)
g_print ("\n");
}
@@ -143,7 +143,7 @@ main (int argc, char **argv)
{ "monitor", 'm', 0, G_OPTION_ARG_NONE, &opt_monitor, _("Monitor activity from the power daemon"), NULL },
{ "monitor-detail", 0, 0, G_OPTION_ARG_NONE, &opt_monitor_detail, _("Monitor with detail"), NULL },
{ "show-info", 'i', 0, G_OPTION_ARG_STRING, &opt_show_info, _("Show information about object path"), NULL },
- { "version", 'v', 0, G_OPTION_ARG_NONE, &opt_version, "Print version of client and daemon", NULL },
+ { "version", 'v', 0, G_OPTION_ARG_NONE, &opt_version, "Print version of client and daemon", NULL },
{ NULL }
};
@@ -159,10 +159,10 @@ main (int argc, char **argv)
client = dkp_client_new ();
if (opt_version) {
- g_print ("DeviceKit-power client version %s\n"
- "DeviceKit-power daemon version %s\n",
- PACKAGE_VERSION,
- dkp_client_get_daemon_version (client));
+ g_print ("DeviceKit-power client version %s\n"
+ "DeviceKit-power daemon version %s\n",
+ PACKAGE_VERSION,
+ dkp_client_get_daemon_version (client));
ret = 0;
goto out;
}