diff options
author | ache <ache@ache.one> | 2018-11-08 16:40:47 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2018-11-08 16:40:47 +0100 |
commit | 6cb43717cbbe8380d2aeb382d2b6f350bab74494 (patch) | |
tree | 717ee722cd50ebcbd4979b4e7156c1b860cebf88 /main.c | |
parent | Fix message showing bug (diff) |
Improve loggers
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -50,6 +50,7 @@ extern int firstSMSIndex; extern int canAugment; extern int showName; +#define DEBUG void fail_exit(const char *msg) { @@ -61,6 +62,10 @@ void fail_exit(const char *msg) { int main(int argc, char* argv[]){ +#ifdef DEBUG + freopen("/tmp/mesms.debug", "w", stderr); +#endif + /* Gestion des paramètres */ while (1) { int c; @@ -129,6 +134,7 @@ int main(int argc, char* argv[]){ } + fprintf(stderr, "test"); /* Initialisation */ @@ -162,14 +168,17 @@ int main(int argc, char* argv[]){ int r = 0; + fprintf(stderr, "test1"); if( r = fillContactList(DEFAULT_CONTACT_FILENAME) ) { return r; } if( r = loadConv() ) { return r; } + fprintf(stderr, "test2"); sortContacts(); + fprintf(stderr, "test3"); for(int i = 0 ; i < 9 ; i++) { init_pair( i+1, i, COLOR_BLACK); |