[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 3/5] file: Neue Ausgabe bei Mounts



* file: Anstatt alle aktiven Mounts zu dumpen, wenn einer dazu kommt,
  eine schoener formatierte Nachricht nur fuer den neu dazugekommenen
  Mount ausgeben.

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/modules/file/server.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/modules/file/server.c b/src/modules/file/server.c
index 2b1e728..01da1a3 100644
--- a/src/modules/file/server.c
+++ b/src/modules/file/server.c
@@ -141,9 +141,7 @@ static void rpc_mount(pid_t pid, dword cid, size_t data_size, void* data)
     src += 5;
     src_size -= 5;
 
-#ifdef DEBUG
-    printf("file: MOUNT %s => %s\n", src, dst);
-#endif
+    printf("[  FILE  ] file:%s => %s\n", src, dst);
 
     struct mount* mount = malloc(sizeof(*mount));
     mount->src_len = src_size;
@@ -165,10 +163,10 @@ static void rpc_mount(pid_t pid, dword cid, size_t data_size, void* data)
 
 #ifdef DEBUG
     printf("Dump mounts:\n");
-#endif
     for (i = 0; (item = list_get_element_at(mounts, i)); i++) {
         printf("%s => %s\n", item->src, item->dst);
     }
+#endif
 }
 
 int server(void)
-- 
1.6.0.2