aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/seq/instrument-map.cpp
diff options
context:
space:
mode:
authorMax Horn2009-05-29 13:07:14 +0000
committerMax Horn2009-05-29 13:07:14 +0000
commit813853ccc246088b26b2cdb0260f06eeb5676131 (patch)
tree8a6d8d4a3432482e4cce9b85dc47b703b56e9048 /engines/sci/sfx/seq/instrument-map.cpp
parentb72c2a29fbef2a89199a4b116c8af45172841240 (diff)
downloadscummvm-rg350-813853ccc246088b26b2cdb0260f06eeb5676131.tar.gz
scummvm-rg350-813853ccc246088b26b2cdb0260f06eeb5676131.tar.bz2
scummvm-rg350-813853ccc246088b26b2cdb0260f06eeb5676131.zip
SCI: Converted several fprintf(stderr) calls to warning/error (the remaining fprintf calls should probably be replaced by suitable debug/debugC/debugN invocations)
svn-id: r40993
Diffstat (limited to 'engines/sci/sfx/seq/instrument-map.cpp')
-rw-r--r--engines/sci/sfx/seq/instrument-map.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sci/sfx/seq/instrument-map.cpp b/engines/sci/sfx/seq/instrument-map.cpp
index d9218d8a5b..2246d517db 100644
--- a/engines/sci/sfx/seq/instrument-map.cpp
+++ b/engines/sci/sfx/seq/instrument-map.cpp
@@ -151,7 +151,7 @@ sfx_instrument_map_t *sfx_instrument_map_load_sci(byte *data, size_t size) {
return NULL;
if (size < PATCH_MIN_SIZE) {
- fprintf(stderr, "[instrument-map] Instrument map too small: %d of %d\n", (int) size, PATCH_MIN_SIZE);
+ warning("[instrument-map] Instrument map too small: %d of %d", (int) size, PATCH_MIN_SIZE);
return NULL;
}
@@ -161,12 +161,12 @@ sfx_instrument_map_t *sfx_instrument_map_load_sci(byte *data, size_t size) {
map->initialisation_block_size = (int16)READ_LE_UINT16(data + PATCH_INIT_DATA_SIZE_LE);
if (map->initialisation_block_size) {
if (size < PATCH_MIN_SIZE + map->initialisation_block_size) {
- fprintf(stderr, "[instrument-map] Instrument map too small for initialisation block: %d of %d\n", (int) size, PATCH_MIN_SIZE);
+ warning("[instrument-map] Instrument map too small for initialisation block: %d of %d", (int) size, PATCH_MIN_SIZE);
return NULL;
}
if (size > PATCH_MIN_SIZE + map->initialisation_block_size)
- fprintf(stderr, "[instrument-map] Instrument larger than required by initialisation block: %d of %d\n", (int) size, PATCH_MIN_SIZE);
+ warning("[instrument-map] Instrument larger than required by initialisation block: %d of %d", (int) size, PATCH_MIN_SIZE);
if (map->initialisation_block_size != 0) {
map->initialisation_block = (byte *)malloc(map->initialisation_block_size);
@@ -254,7 +254,7 @@ static void close_decorated(decorated_midi_writer_t *self) {
static int bound_hard_127(int i, const char *descr) {
int r = BOUND_127(i);
if (r != i)
- fprintf(stderr, "[instrument-map] Hard-clipping %02x to %02x in %s\n", i, r, descr);
+ warning("[instrument-map] Hard-clipping %02x to %02x in %s", i, r, descr);
return r;
}
@@ -423,7 +423,7 @@ static void init(midi_writer_t *writer, byte *data, size_t len) {
byte *find = (byte *) memchr(data + offset, 0xf7, len - offset);
if (!find) {
- fprintf(stderr, "[instrument-map] Failed to find end of sysex message\n");
+ warning("[instrument-map] Failed to find end of sysex message");
return;
}
@@ -455,7 +455,7 @@ static void init(midi_writer_t *writer, byte *data, size_t len) {
}
if (args + offset > len) {
- fprintf(stderr, "[instrument-map] Insufficient bytes remaining for MIDI command %02x\n", op);
+ warning("[instrument-map] Insufficient bytes remaining for MIDI command %02x", op);
return;
}