projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4ec839
)
use log_err instead of fprintf, improved message
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Mon, 30 Apr 2012 00:58:46 +0000
(
00:58
+0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Mon, 30 Apr 2012 00:58:46 +0000
(
00:58
+0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
559400b
..
d16174e
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-87,7
+87,7
@@
static void print_help()
{
printf(_("Usage: %s [OPTION]...\n"), program_name);
{
printf(_("Usage: %s [OPTION]...\n"), program_name);
- puts(_("
psensor is a GTK
application for monitoring hardware sensors, "
+ puts(_("
Psensor is a GTK+
application for monitoring hardware sensors, "
"including temperatures and fan speeds."));
puts("");
"including temperatures and fan speeds."));
puts("");
@@
-436,8
+436,6
@@
static void cleanup(struct ui_psensor *ui)
config_cleanup();
log_debug("Cleanup done, closing log");
config_cleanup();
log_debug("Cleanup done, closing log");
-
- log_close();
}
/*
}
/*
@@
-456,8
+454,8
@@
static struct psensor **create_sensors_list(const char *url,
rsensor_init();
sensors = get_remote_sensors(url, 600);
#else
rsensor_init();
sensors = get_remote_sensors(url, 600);
#else
- fprintf(stderr,
-
_("ERROR: Not compiled with remote sensor support.\n
"));
+ log_err(_("Psensor has not been compiled"
+
" with remote sensor support.
"));
exit(EXIT_FAILURE);
#endif
} else {
exit(EXIT_FAILURE);
#endif
} else {
@@
-544,7
+542,7
@@
int main(int argc, char **argv)
if (!new_instance && g_application_get_is_remote(app)) {
g_application_activate(app);
if (!new_instance && g_application_get_is_remote(app)) {
g_application_activate(app);
- log_warn(_("
Psensor instance already exists
"));
+ log_warn(_("
A Psensor instance already exists.
"));
exit(EXIT_SUCCESS);
}
exit(EXIT_SUCCESS);
}
@@
-619,7
+617,9
@@
int main(int argc, char **argv)
g_object_ref(app);
cleanup(&ui);
g_object_ref(app);
cleanup(&ui);
+
log_debug("Quitting...");
log_debug("Quitting...");
+ log_close();
return 0;
}
return 0;
}