use FLUID_LOG rather than fprintf

This commit is contained in:
derselbst 2017-10-25 16:58:20 +02:00
parent 7a3a97a98e
commit 24a6748a02

View file

@ -179,14 +179,14 @@ static void fluid_alsa_autoconnect_inputs(fluid_alsa_seq_driver_t* dev, const sn
snd_seq_port_subscribe_set_dest(subs, dest);
if (snd_seq_get_port_subscription(seq, subs) == 0) {
fprintf(stderr, _("Connection %s is already subscribed\n"), pname);
FLUID_LOG(FLUID_ERR, "Connection %s is already subscribed\n", pname);
continue;
}
if (snd_seq_subscribe_port(seq, subs) < 0) {
fprintf(stderr, _("Connection of %s failed (%s)\n"), pname, snd_strerror(errno));
FLUID_LOG(FLUID_ERR, "Connection of %s failed (%s)\n", pname, snd_strerror(errno));
continue;
}
fprintf(stderr, _("Connection of %s succeeded\n"), pname);
FLUID_LOG(FLUID_ERR, "Connection of %s succeeded\n", pname);
}
}
}