chiark / gitweb /
importd: minor log improvements
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Jan 2015 16:30:02 +0000 (17:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Jan 2015 16:50:50 +0000 (17:50 +0100)
src/import/importd.c

index 92de430..a3545cd 100644 (file)
@@ -166,7 +166,7 @@ static void transfer_send_log_line(Transfer *t, const char *line) {
 
         syslog_parse_priority(&line, &priority, true);
 
-        log_full(priority, "(transfer%" PRIu32 "): %s", t->id, line);
+        log_full(priority, "(transfer%" PRIu32 ") %s", t->id, line);
 
         r = sd_bus_emit_signal(
                         t->manager->bus,
@@ -782,7 +782,7 @@ static int method_cancel_transfer(sd_bus *bus, sd_bus_message *msg, void *userda
 
         t = hashmap_get(m->transfers, UINT32_TO_PTR(id));
         if (!t)
-                return sd_bus_error_setf(error, BUS_ERROR_NO_SUCH_TRANSFER, "Not transfer by id %" PRIu32, id);
+                return sd_bus_error_setf(error, BUS_ERROR_NO_SUCH_TRANSFER, "No transfer by id %" PRIu32, id);
 
         r = transfer_cancel(t);
         if (r < 0)