mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
change pa_log() and friends to not require a trailing \n on all logged strings
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@574 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
cb59817b4a
commit
4a64b0d116
74 changed files with 558 additions and 532 deletions
|
|
@ -66,7 +66,7 @@ static int detect_alsa(pa_core *c, int just_one) {
|
|||
if (!(f = fopen("/proc/asound/devices", "r"))) {
|
||||
|
||||
if (errno != ENOENT)
|
||||
pa_log_error(__FILE__": open(\"/proc/asound/devices\") failed: %s\n", strerror(errno));
|
||||
pa_log_error(__FILE__": open(\"/proc/asound/devices\") failed: %s", strerror(errno));
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -129,7 +129,7 @@ static int detect_oss(pa_core *c, int just_one) {
|
|||
!(f = fopen("/proc/asound/oss/sndstat", "r"))) {
|
||||
|
||||
if (errno != ENOENT)
|
||||
pa_log_error(__FILE__": failed to open OSS sndstat device: %s\n", strerror(errno));
|
||||
pa_log_error(__FILE__": failed to open OSS sndstat device: %s", strerror(errno));
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -185,7 +185,7 @@ static int detect_solaris(pa_core *c, int just_one) {
|
|||
|
||||
if (stat(dev, &s) < 0) {
|
||||
if (errno != ENOENT)
|
||||
pa_log_error(__FILE__": failed to open device %s: %s\n", dev, strerror(errno));
|
||||
pa_log_error(__FILE__": failed to open device %s: %s", dev, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -227,12 +227,12 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
assert(m);
|
||||
|
||||
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
||||
pa_log(__FILE__": Failed to parse module arguments\n");
|
||||
pa_log(__FILE__": Failed to parse module arguments");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (pa_modargs_get_value_boolean(ma, "just-one", &just_one) < 0) {
|
||||
pa_log(__FILE__": just_one= expects a boolean argument.\n");
|
||||
pa_log(__FILE__": just_one= expects a boolean argument.");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
@ -249,11 +249,11 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
if ((n = detect_waveout(c, just_one)) <= 0)
|
||||
#endif
|
||||
{
|
||||
pa_log_warn(__FILE__": failed to detect any sound hardware.\n");
|
||||
pa_log_warn(__FILE__": failed to detect any sound hardware.");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
pa_log_info(__FILE__": loaded %i modules.\n", n);
|
||||
pa_log_info(__FILE__": loaded %i modules.", n);
|
||||
|
||||
/* We were successful and can unload ourselves now. */
|
||||
pa_module_unload_request(m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue