Browse Source

[0.89.2] use stderr rather than stdout where appropriate

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@544 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
joq 22 years ago
parent
commit
8ea1ee0acb
4 changed files with 8 additions and 15 deletions
  1. +3
    -11
      drivers/portaudio/portaudio_driver.c
  2. +3
    -2
      jack/driver_parse.h
  3. +1
    -1
      jack/internal.h
  4. +1
    -1
      libjack/client.c

+ 3
- 11
drivers/portaudio/portaudio_driver.c View File

@@ -130,14 +130,6 @@ portaudio_driver_detach (portaudio_driver_t *driver, jack_engine_t *engine)
return 0;
}

static jack_nframes_t
portaudio_driver_wait (portaudio_driver_t *driver, int extra_fd, int *status, float *delayed_usecs)
{
*status = 0;
*delayed_usecs = 0;
return driver->frames_per_cycle;
}

static int
portaudio_driver_null_cycle (portaudio_driver_t* driver, jack_nframes_t nframes)
{
@@ -273,8 +265,8 @@ portaudio_driver_reset_parameters (portaudio_driver_t* driver,
jack_nframes_t rate)
{
if (!jack_power_of_two(nframes)) {
printf("PA: frames must be a power of two "
"(64, 512, 1024, ...)\n");
fprintf (stderr, "PA: frames must be a power of two "
"(64, 512, 1024, ...)\n");
return EINVAL;
}

@@ -336,7 +328,7 @@ portaudio_driver_new (char *name,
jack_driver_init ((jack_driver_t *) driver);

if (!jack_power_of_two(frames_per_cycle)) {
printf("PA: -p must be a power of two.\n");
fprintf (stderr, "PA: -p must be a power of two.\n");
goto error;
}



+ 3
- 2
jack/driver_parse.h View File

@@ -105,8 +105,9 @@ jack_parse_driver_params (jack_driver_desc_t * desc, int argc, char **argv, JSLi
}
}

fprintf (stderr, "jackd: unknown option '%s' for driver '%s'\n",
argv[2], desc->name);
fprintf (stderr, "jackd: unknown option '%s' "
"for driver '%s'\n", argv[2],
desc->name);
}

printf ("Options for driver '%s':\n", desc->name);


+ 1
- 1
jack/internal.h View File

@@ -47,7 +47,7 @@

#ifdef DEBUG_ENABLED
#define DEBUG(format,args...) \
printf ("jack:%5d:%" PRIu64 " %s:%s:%d: " format "\n", getpid(), jack_get_microseconds(), __FILE__, __FUNCTION__, __LINE__ , ## args)
fprintf (stderr, "jack:%5d:%" PRIu64 " %s:%s:%d: " format "\n", getpid(), jack_get_microseconds(), __FILE__, __FUNCTION__, __LINE__ , ## args)
#else
#if defined(__APPLE__) && defined(__POWERPC__)
#define DEBUG(format...)


+ 1
- 1
libjack/client.c View File

@@ -766,7 +766,7 @@ jack_client_thread (void *arg)
if (poll (client->pollfd, client->pollmax, 1000) < 0) {
if (errno == EINTR) {
printf ("poll interrupted\n");
fprintf (stderr, "poll interrupted\n");
continue;
}
jack_error ("poll failed in client (%s)",


Loading…
Cancel
Save