X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=ce5c1c7e87fbd76d2ca3599309ce0eb3e0dbd691;hp=46337f28f3f42145c54b6fbed34c8088b16e2222;hb=b3ee0fa979a74e9d7a1497ec5a3ac8fa7cc7472b;hpb=9e0bf2caf0500aef978abfb50f8c8111bb1d9831;ds=inline diff --git a/mood.c b/mood.c index 46337f28..ce5c1c7e 100644 --- a/mood.c +++ b/mood.c @@ -518,7 +518,6 @@ static int load_mood(const struct osl_row *mood_row, struct mood **m) destroy_mood(mlpd.m); return ret; } - PARA_INFO_LOG("loaded mood %s\n", mlpd.m->name); *m = mlpd.m; return 1; } @@ -904,10 +903,10 @@ static void log_statistics(void) PARA_NOTICE_LOG("no admissible files\n"); return; } - PARA_NOTICE_LOG("last_played mean: %lli, last_played sigma: %llu\n", + PARA_INFO_LOG("last_played mean: %lli, last_played sigma: %llu\n", (long long int)(statistics.last_played_sum / n), (long long unsigned)int_sqrt(statistics.last_played_qd / n)); - PARA_NOTICE_LOG("num_played mean: %lli, num_played sigma: %llu\n", + PARA_INFO_LOG("num_played mean: %lli, num_played sigma: %llu\n", (long long int)statistics.num_played_sum / n, (long long unsigned)int_sqrt(statistics.num_played_qd / n)); } @@ -972,20 +971,19 @@ int change_current_mood(char *mood_name) current_mood = alloc_new_mood("dummy"); } aa.m = current_mood; - PARA_NOTICE_LOG("loaded mood %s\n", current_mood->name); - PARA_INFO_LOG("%s\n", "computing statistics of admissible files"); + PARA_NOTICE_LOG("computing statistics of admissible files\n"); ret = audio_file_loop(&aa, add_if_admissible); if (ret < 0) return ret; log_statistics(); - PARA_NOTICE_LOG("%d admissible files \n", statistics.num); + PARA_INFO_LOG("%d admissible files \n", statistics.num); for (i = 0; i < statistics.num; i++) { struct admissible_file_info *a = aa.array + i; ret = add_to_score_table(a->aft_row, a->score); if (ret < 0) goto out; } - PARA_NOTICE_LOG("score add complete\n"); + PARA_NOTICE_LOG("loaded mood %s\n", current_mood->name); ret = statistics.num; out: free(aa.array);