diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-10-21 10:20:11 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-11-04 07:19:32 -0500 |
commit | d3d579f84ebf701dedd22ba696d1738ed6759ef7 (patch) | |
tree | 54cdc92d760b9dd350e8dc7ee11194f309c2e2a2 /sound/core | |
parent | 8a5afd29dc16a9e687f63195cb635ecd611482d0 (diff) |
[ALSA] Add missing KERN_* prefix
Modules: ALSA<-OSS emulation,USB generic driver,USB USX2Y
Added missing KERN_* prefix to printk.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/oss/mixer_oss.c | 3 | ||||
-rw-r--r-- | sound/core/oss/pcm_oss.c | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sound/core/oss/mixer_oss.c b/sound/core/oss/mixer_oss.c index b2497cec2079..214933cf5d49 100644 --- a/sound/core/oss/mixer_oss.c +++ b/sound/core/oss/mixer_oss.c | |||
@@ -1294,7 +1294,8 @@ static int snd_mixer_oss_notify_handler(snd_card_t * card, int cmd) | |||
1294 | card, 0, | 1294 | card, 0, |
1295 | &snd_mixer_oss_reg, | 1295 | &snd_mixer_oss_reg, |
1296 | name)) < 0) { | 1296 | name)) < 0) { |
1297 | snd_printk("unable to register OSS mixer device %i:%i\n", card->number, 0); | 1297 | snd_printk(KERN_ERR "unable to register OSS mixer device %i:%i\n", |
1298 | card->number, 0); | ||
1298 | kfree(mixer); | 1299 | kfree(mixer); |
1299 | return err; | 1300 | return err; |
1300 | } | 1301 | } |
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index c57f702d31a7..bcc970759134 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c | |||
@@ -2457,7 +2457,8 @@ static void register_oss_dsp(snd_pcm_t *pcm, int index) | |||
2457 | if (snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_PCM, | 2457 | if (snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_PCM, |
2458 | pcm->card, index, &snd_pcm_oss_reg, | 2458 | pcm->card, index, &snd_pcm_oss_reg, |
2459 | name) < 0) { | 2459 | name) < 0) { |
2460 | snd_printk("unable to register OSS PCM device %i:%i\n", pcm->card->number, pcm->device); | 2460 | snd_printk(KERN_ERR "unable to register OSS PCM device %i:%i\n", |
2461 | pcm->card->number, pcm->device); | ||
2461 | } | 2462 | } |
2462 | } | 2463 | } |
2463 | 2464 | ||
@@ -2539,11 +2540,13 @@ static int __init alsa_pcm_oss_init(void) | |||
2539 | /* check device map table */ | 2540 | /* check device map table */ |
2540 | for (i = 0; i < SNDRV_CARDS; i++) { | 2541 | for (i = 0; i < SNDRV_CARDS; i++) { |
2541 | if (dsp_map[i] < 0 || dsp_map[i] >= SNDRV_PCM_DEVICES) { | 2542 | if (dsp_map[i] < 0 || dsp_map[i] >= SNDRV_PCM_DEVICES) { |
2542 | snd_printk("invalid dsp_map[%d] = %d\n", i, dsp_map[i]); | 2543 | snd_printk(KERN_ERR "invalid dsp_map[%d] = %d\n", |
2544 | i, dsp_map[i]); | ||
2543 | dsp_map[i] = 0; | 2545 | dsp_map[i] = 0; |
2544 | } | 2546 | } |
2545 | if (adsp_map[i] < 0 || adsp_map[i] >= SNDRV_PCM_DEVICES) { | 2547 | if (adsp_map[i] < 0 || adsp_map[i] >= SNDRV_PCM_DEVICES) { |
2546 | snd_printk("invalid adsp_map[%d] = %d\n", i, adsp_map[i]); | 2548 | snd_printk(KERN_ERR "invalid adsp_map[%d] = %d\n", |
2549 | i, adsp_map[i]); | ||
2547 | adsp_map[i] = 1; | 2550 | adsp_map[i] = 1; |
2548 | } | 2551 | } |
2549 | } | 2552 | } |