Remove newline at end of log messages

Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
Peter Meerwald-Stadler 2016-08-16 07:03:25 +02:00
parent 9cc778123f
commit 8b076c3ed9
18 changed files with 60 additions and 60 deletions

View file

@ -114,7 +114,7 @@ static void run_mix_test(
for (i = 0; i < nsamples; i++) {
if (samples[i] != samples_ref[i]) {
pa_log_debug("Correctness test failed: align=%d, channels=%d", align, channels);
pa_log_debug("%d: %hd != %04hd (%hd + %hd)\n",
pa_log_debug("%d: %hd != %04hd (%hd + %hd)",
i,
samples[i], samples_ref[i],
samples0[i], samples1[i]);

View file

@ -68,7 +68,7 @@ static void run_remap_test_float(
for (i = 0; i < nsamples * n_oc; i++) {
if (fabsf(out[i] - out_ref[i]) > 0.0001f) {
pa_log_debug("Correctness test failed: align=%d", align);
pa_log_debug("%d: %.24f != %.24f\n", i,
pa_log_debug("%d: %.24f != %.24f", i,
out[i], out_ref[i]);
ck_abort();
}
@ -122,7 +122,7 @@ static void run_remap_test_s16(
for (i = 0; i < nsamples * n_oc; i++) {
if (abs(out[i] - out_ref[i]) > 3) {
pa_log_debug("Correctness test failed: align=%d", align);
pa_log_debug("%d: %d != %d\n", i, out[i], out_ref[i]);
pa_log_debug("%d: %d != %d", i, out[i], out_ref[i]);
ck_abort();
}
}

View file

@ -76,7 +76,7 @@ static void run_volume_test(
for (i = 0; i < nsamples; i++) {
if (samples[i] != samples_ref[i]) {
pa_log_debug("Correctness test failed: align=%d, channels=%d", align, channels);
pa_log_debug("%d: %04hx != %04hx (%04hx * %08x)\n", i, samples[i], samples_ref[i],
pa_log_debug("%d: %04hx != %04hx (%04hx * %08x)", i, samples[i], samples_ref[i],
samples_orig[i], volumes[i % channels]);
ck_abort();
}

View file

@ -212,7 +212,7 @@ START_TEST (interpol_test) {
bool cork_now;
#endif
rtc = pa_timeval_diff(&now, &start);
pa_log_info("%i\t%llu\t%llu\t%llu\t%llu\t%lli\t%u\t%u\t%llu\t%llu\n", k,
pa_log_info("%i\t%llu\t%llu\t%llu\t%llu\t%lli\t%u\t%u\t%llu\t%llu", k,
(unsigned long long) rtc,
(unsigned long long) t,
(unsigned long long) (rtc-old_rtc),

View file

@ -70,7 +70,7 @@ static int compare_data_block(struct lfe_filter_test *lft, void *a, void *b) {
for (i = 0; i < ONE_BLOCK_SAMPLES; i++) {
if (abs(*r++ - *u++) > TOLERANT_VARIATION) {
pa_log_error("lfe-filter-test: test failed, the output data in the position 0x%x of a block does not equal!\n", i);
pa_log_error("lfe-filter-test: test failed, the output data in the position 0x%x of a block does not equal!", i);
ret = -1;
break;
}
@ -88,7 +88,7 @@ static int lfe_filter_rewind_test(struct lfe_filter_test *lft, int rewind_sample
uint32_t fz = pa_frame_size(lft->ss);
if (rewind_samples > TOTAL_SAMPLES || rewind_samples < TOTAL_SAMPLES - ONE_BLOCK_SAMPLES) {
pa_log_error("lfe-filter-test: Please keep %d samples < rewind_samples < %d samples\n", TOTAL_SAMPLES - ONE_BLOCK_SAMPLES, TOTAL_SAMPLES);
pa_log_error("lfe-filter-test: Please keep %d samples < rewind_samples < %d samples", TOTAL_SAMPLES - ONE_BLOCK_SAMPLES, TOTAL_SAMPLES);
return ret;
}

View file

@ -38,11 +38,11 @@ static void nop_free_cb(void *p) {
}
static void underflow_cb(struct pa_stream *s, void *userdata) {
pa_log_warn("Underflow\n");
pa_log_warn("Underflow");
}
static void overflow_cb(struct pa_stream *s, void *userdata) {
pa_log_warn("Overlow\n");
pa_log_warn("Overlow");
}
/*
@ -114,7 +114,7 @@ static void calibrate_read_cb(pa_stream *s, size_t nbytes, void *userdata) {
v += 0.02f;
if (v > 1.0) {
pa_log_error("Capture signal too weak at 100%% volume (%g). Giving up.\n", pa_rms(in, nsamp));
pa_log_error("Capture signal too weak at 100%% volume (%g). Giving up.", pa_rms(in, nsamp));
pa_assert_not_reached();
}
@ -126,7 +126,7 @@ static void calibrate_read_cb(pa_stream *s, size_t nbytes, void *userdata) {
/* Make sure the signal strength is steadily above our threshold */
if (++confirm > 5) {
#if 0
pa_log_debug(stderr, "Capture volume = %g (%g)\n", v, pa_rms(in, nsamp));
pa_log_debug(stderr, "Capture volume = %g (%g)", v, pa_rms(in, nsamp));
#endif
cal_state = CALIBRATION_ZERO;
}
@ -138,7 +138,7 @@ static void calibrate_read_cb(pa_stream *s, size_t nbytes, void *userdata) {
/* Now make sure silence doesn't trigger a false positive because
* of noise. */
if (pa_rms(in, nsamp) > 0.1f) {
fprintf(stderr, "Too much noise on capture (%g). Giving up.\n", pa_rms(in, nsamp));
pa_log_warn("Too much noise on capture (%g). Giving up.", pa_rms(in, nsamp));
pa_assert_not_reached();
}
@ -179,7 +179,7 @@ static void stream_state_callback(pa_stream *s, void *userdata) {
}
if (!o) {
pa_log_error("Could not set stream volume: %s\n", pa_strerror(pa_context_errno(ctx->context)));
pa_log_error("Could not set stream volume: %s", pa_strerror(pa_context_errno(ctx->context)));
pa_assert_not_reached();
} else
pa_operation_unref(o);
@ -189,7 +189,7 @@ static void stream_state_callback(pa_stream *s, void *userdata) {
case PA_STREAM_FAILED:
default:
pa_log_error("Stream error: %s\n", pa_strerror(pa_context_errno(ctx->context)));
pa_log_error("Stream error: %s", pa_strerror(pa_context_errno(ctx->context)));
pa_assert_not_reached();
}
}
@ -252,7 +252,7 @@ static void context_state_callback(pa_context *c, void *userdata) {
case PA_CONTEXT_FAILED:
default:
pa_log_error("Context error: %s\n", pa_strerror(pa_context_errno(c)));
pa_log_error("Context error: %s", pa_strerror(pa_context_errno(c)));
pa_assert_not_reached();
}
}
@ -271,7 +271,7 @@ int pa_lo_test_init(pa_lo_test_context *ctx) {
/* Connect the context */
if (pa_context_connect(ctx->context, NULL, PA_CONTEXT_NOFLAGS, NULL) < 0) {
pa_log_error("pa_context_connect() failed.\n");
pa_log_error("pa_context_connect() failed.");
goto quit;
}
@ -288,7 +288,7 @@ int pa_lo_test_run(pa_lo_test_context *ctx) {
int ret;
if (pa_mainloop_run(ctx->mainloop, &ret) < 0) {
pa_log_error("pa_mainloop_run() failed.\n");
pa_log_error("pa_mainloop_run() failed.");
return -1;
}

View file

@ -299,7 +299,7 @@ START_TEST (mix_test) {
pa_mix_info m[2];
void *ptr;
pa_log_debug("=== mixing: %s\n", pa_sample_format_to_string(a.format));
pa_log_debug("=== mixing: %s", pa_sample_format_to_string(a.format));
/* Generate block */
i.memblock = generate_block(pool, &a);

View file

@ -59,7 +59,7 @@ int main(int argc, char *argv[]) {
pa_resampler *r;
pa_sample_spec ss1, ss2;
pa_log_info("Converting from '%s' to '%s'.\n", pa_channel_map_snprint(a, sizeof(a), &maps[i]), pa_channel_map_snprint(b, sizeof(b), &maps[j]));
pa_log_info("Converting from '%s' to '%s'.", pa_channel_map_snprint(a, sizeof(a), &maps[i]), pa_channel_map_snprint(b, sizeof(b), &maps[j]));
ss1.channels = maps[i].channels;
ss2.channels = maps[j].channels;

View file

@ -25,7 +25,7 @@ START_TEST (utf8_filter) {
{
char res1[] = { 0x68, 0x5f, 0x70, 0x66, 0x62, 0x75, 0x72, 0x67, '\0' };
c = pa_utf8_filter("hüpfburg");
pa_log_debug("%s %s\n", res1, c);
pa_log_debug("%s %s", res1, c);
fail_unless(pa_streq(c, res1));
pa_xfree(c);
}
@ -34,14 +34,14 @@ START_TEST (utf8_filter) {
char res2[] = { 0x68, 0xc3, 0xbc, 0x70, 0x66, 0x62, 0x75, 0x72, 0x67, '\0' };
c = pa_utf8_filter("hüpfburg");
fail_unless(pa_streq(c, res2));
pa_log_debug("%s %s\n", res2, c);
pa_log_debug("%s %s", res2, c);
pa_xfree(c);
}
{
char res3[] = { 0x5f, 0x78, 0x6b, 0x6e, 0x5f, 0x72, 0x7a, 0x6d, 0x5f, 0x72, 0x7a, 0x65, 0x6c, 0x74, 0x5f, 0x72, 0x73, 0x7a, 0xdf, 0xb3, 0x5f, 0x64, 0x73, 0x6a, 0x6b, 0x66, 0x68, '\0' };
c = pa_utf8_filter("üxknärzmörzeltörszß³§dsjkfh");
pa_log_debug("%s %s\n", res3, c);
pa_log_debug("%s %s", res3, c);
fail_unless(pa_streq(c, res3));
pa_xfree(c);
}