changeset 1831:78616d66a7f2

Make module info output slightly more readable
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 Mar 2010 13:40:42 +0100
parents 7befbd8e932d
children 48b265f8c5cb
files mcabber/mcabber/modules.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/modules.c	Sat Mar 27 13:35:46 2010 +0100
+++ b/mcabber/mcabber/modules.c	Sat Mar 27 13:40:42 2010 +0100
@@ -372,17 +372,17 @@
   module = lmod->data;
   info = module->info;
 
-  scr_LogPrint(LPRINT_NORMAL, "Name: %s", module->name);
-  scr_LogPrint(LPRINT_NORMAL, "Location: %s", g_module_name(module->module));
-  scr_LogPrint(LPRINT_NORMAL, "Loaded: %s",
+  scr_LogPrint(LPRINT_NORMAL, "Module %s", module->name);
+  scr_LogPrint(LPRINT_NORMAL, " Location: %s", g_module_name(module->module));
+  scr_LogPrint(LPRINT_NORMAL, " Loaded: %s",
                module->locked ? "Manually" : "Automatically");
-  scr_LogPrint(LPRINT_NORMAL, "Reference count: %u", module->refcount);
+  scr_LogPrint(LPRINT_NORMAL, " Reference count: %u", module->refcount);
 
   if (info) {
 
     if (info->version)
-      scr_LogPrint(LPRINT_NORMAL, "Version: %s", info->version);
-    scr_LogPrint(LPRINT_NORMAL, "API: %s:%u", info->branch, info->api);
+      scr_LogPrint(LPRINT_NORMAL, " Version: %s", info->version);
+    scr_LogPrint(LPRINT_NORMAL, " API: %s:%u", info->branch, info->api);
 
     if (info->requires && *(info->requires)) {
       GString *message = g_string_new("Depends on: ");
@@ -394,12 +394,12 @@
 
       // Chop last ", "
       g_string_truncate(message, message->len - 2);
-      scr_LogPrint(LPRINT_NORMAL, "%s", message->str);
+      scr_LogPrint(LPRINT_NORMAL, " %s", message->str);
       g_string_free(message, TRUE);
     }
 
     if (info->description)
-      scr_LogPrint(LPRINT_NORMAL, "Description: %s", info->description);
+      scr_LogPrint(LPRINT_NORMAL, " Description: %s", info->description);
   }
   scr_setmsgflag_if_needed(SPECIAL_BUFFER_STATUS_ID, TRUE);
   scr_setattentionflag_if_needed(SPECIAL_BUFFER_STATUS_ID, TRUE,