fix SNDERR() format strings/arguments

This commit is contained in:
Clemens Ladisch 2007-02-12 13:45:57 +01:00
parent 0c49463b8c
commit f54f03bfc4
4 changed files with 8 additions and 8 deletions

View file

@ -7155,7 +7155,7 @@ int snd_pcm_set_params(snd_pcm_t *pcm,
/* set the count of channels */
err = snd_pcm_hw_params_set_channels(pcm, params, channels);
if (err < 0) {
SNDERR("Channels count (%i) not available for %s: %s", s, channels, snd_strerror(err));
SNDERR("Channels count (%i) not available for %s: %s", channels, s, snd_strerror(err));
return err;
}
/* set the stream rate */
@ -7212,7 +7212,7 @@ int snd_pcm_set_params(snd_pcm_t *pcm,
period_time = latency / 4;
err = INTERNAL(snd_pcm_hw_params_set_period_time_near)(pcm, params, &period_time, NULL);
if (err < 0) {
SNDERR("Unable to set period time %i for %s: %s", s, period_time, snd_strerror(err));
SNDERR("Unable to set period time %i for %s: %s", period_time, s, snd_strerror(err));
return err;
}
err = INTERNAL(snd_pcm_hw_params_get_period_size)(params, &period_size, NULL);

View file

@ -1101,7 +1101,7 @@ int snd_pcm_direct_initialize_poll_fd(snd_pcm_direct_t *dmix)
}
if (snd_timer_poll_descriptors_count(dmix->timer) != 1) {
SNDERR("unable to use timer with fd more than one!!!", name);
SNDERR("unable to use timer '%s' with more than one fd!", name);
return ret;
}
snd_timer_poll_descriptors(dmix->timer, &dmix->timer_fd, 1);
@ -1375,7 +1375,7 @@ int snd_pcm_direct_parse_bindings(snd_pcm_direct_t *dmix,
return -EINVAL;
}
if (schannel < 0 || schannel >= params->channels) {
SNDERR("invalid slave channel number %d in binding to %d",
SNDERR("invalid slave channel number %ld in binding to %ld",
schannel, cchannel);
free(bindings);
return -EINVAL;