# HG changeset patch # User Mikael Berthe # Date 1269693642 -3600 # Node ID 78616d66a7f27ff97ee3c54d200292099cbfc962 # Parent 7befbd8e932d55168b320b62c4e2c55c29c102df Make module info output slightly more readable diff -r 7befbd8e932d -r 78616d66a7f2 mcabber/mcabber/modules.c --- 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,