audio/, crypto/, libnx/, and mm/: Change some err() ERRORS to warn() WARNINGS or info()

This commit is contained in:
Gregory Nutt
2016-06-12 09:46:23 -06:00
parent 0665c7e06c
commit b29a4dd49c
23 changed files with 74 additions and 65 deletions
+2 -2
View File
@@ -832,7 +832,7 @@ static void audio_callback(FAR void *handle, uint16_t reason,
default:
{
auderr("Unknown callback reason code %d\n", reason);
auderr("ERROR: Unknown callback reason code %d\n", reason);
break;
}
}
@@ -885,7 +885,7 @@ int audio_register(FAR const char *name, FAR struct audio_lowerhalf_s *dev)
upper = (FAR struct audio_upperhalf_s *)kmm_zalloc(sizeof(struct audio_upperhalf_s));
if (!upper)
{
auderr("Allocation failed\n");
auderr("ERROR: Allocation failed\n");
return -ENOMEM;
}
+18 -18
View File
@@ -259,23 +259,23 @@ static void pcm_callback(FAR void *arg, uint16_t reason,
#ifdef CONFIG_PCM_DEBUG
static void pcm_dump(FAR const struct wav_header_s *wav)
{
err("Wave file header\n");
err(" Header Chunk:\n");
err(" Chunk ID: 0x%08x\n", wav->hdr.chunkid);
err(" Chunk Size: %u\n", wav->hdr.chunklen);
err(" Format: 0x%08x\n", wav->hdr.format);
err(" Format Chunk:\n");
err(" Chunk ID: 0x%08x\n", wav->fmt.chunkid);
err(" Chunk Size: %u\n", wav->fmt.chunklen);
err(" Audio Format: 0x%04x\n", wav->fmt.format);
err(" Num. Channels: %d\n", wav->fmt.nchannels);
err(" Sample Rate: %u\n", wav->fmt.samprate);
err(" Byte Rate: %u\n", wav->fmt.byterate);
err(" Block Align: %d\n", wav->fmt.align);
err(" Bits Per Sample: %d\n", wav->fmt.bpsamp);
err(" Data Chunk:\n");
err(" Chunk ID: 0x%08x\n", wav->data.chunkid);
err(" Chunk Size: %u\n", wav->data.chunklen);
info("Wave file header\n");
info(" Header Chunk:\n");
info(" Chunk ID: 0x%08x\n", wav->hdr.chunkid);
info(" Chunk Size: %u\n", wav->hdr.chunklen);
info(" Format: 0x%08x\n", wav->hdr.format);
info(" Format Chunk:\n");
info(" Chunk ID: 0x%08x\n", wav->fmt.chunkid);
info(" Chunk Size: %u\n", wav->fmt.chunklen);
info(" Audio Format: 0x%04x\n", wav->fmt.format);
info(" Num. Channels: %d\n", wav->fmt.nchannels);
info(" Sample Rate: %u\n", wav->fmt.samprate);
info(" Byte Rate: %u\n", wav->fmt.byterate);
info(" Block Align: %d\n", wav->fmt.align);
info(" Bits Per Sample: %d\n", wav->fmt.bpsamp);
info(" Data Chunk:\n");
info(" Chunk ID: 0x%08x\n", wav->data.chunkid);
info(" Chunk Size: %u\n", wav->data.chunklen);
}
#endif
@@ -691,7 +691,7 @@ static int pcm_getcaps(FAR struct audio_lowerhalf_s *dev, int type,
ret = lower->ops->getcaps(lower, type, caps);
if (ret < 0)
{
auderr("Lower getcaps() failed: %d\n", ret);
auderr("ERROR: Lower getcaps() failed: %d\n", ret);
return ret;
}