Use the standard pr_xxx() helpers instead of home-baked snd_print*().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
        if ((rc = snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_SEQUENCER,
                                          NULL, 0,
                                          &seq_oss_f_ops, NULL)) < 0) {
-               snd_printk(KERN_ERR "can't register device seq\n");
+               pr_err("ALSA: seq_oss: can't register device seq\n");
                mutex_unlock(®ister_mutex);
                return rc;
        }
        if ((rc = snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_MUSIC,
                                          NULL, 0,
                                          &seq_oss_f_ops, NULL)) < 0) {
-               snd_printk(KERN_ERR "can't register device music\n");
+               pr_err("ALSA: seq_oss: can't register device music\n");
                snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_SEQUENCER, NULL, 0);
                mutex_unlock(®ister_mutex);
                return rc;
 {
        mutex_lock(®ister_mutex);
        if (snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_MUSIC, NULL, 0) < 0)                
-               snd_printk(KERN_ERR "error unregister device music\n");
+               pr_err("ALSA: seq_oss: error unregister device music\n");
        if (snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_SEQUENCER, NULL, 0) < 0)
-               snd_printk(KERN_ERR "error unregister device seq\n");
+               pr_err("ALSA: seq_oss: error unregister device seq\n");
        mutex_unlock(®ister_mutex);
 }
 
 
 
        dp = kzalloc(sizeof(*dp), GFP_KERNEL);
        if (!dp) {
-               snd_printk(KERN_ERR "can't malloc device info\n");
+               pr_err("ALSA: seq_oss: can't malloc device info\n");
                return -ENOMEM;
        }
 
 
        dp->index = i;
        if (i >= SNDRV_SEQ_OSS_MAX_CLIENTS) {
-               snd_printk(KERN_ERR "too many applications\n");
+               pr_err("ALSA: seq_oss: too many applications\n");
                rc = -ENOMEM;
                goto _error;
        }
        snd_seq_oss_midi_setup(dp);
 
        if (dp->synth_opened == 0 && dp->max_mididev == 0) {
-               /* snd_printk(KERN_ERR "no device found\n"); */
+               /* pr_err("ALSA: seq_oss: no device found\n"); */
                rc = -ENODEV;
                goto _error;
        }
        /* create port */
        rc = create_port(dp);
        if (rc < 0) {
-               snd_printk(KERN_ERR "can't create port\n");
+               pr_err("ALSA: seq_oss: can't create port\n");
                goto _error;
        }
 
        /* initialize timer */
        dp->timer = snd_seq_oss_timer_new(dp);
        if (!dp->timer) {
-               snd_printk(KERN_ERR "can't alloc timer\n");
+               pr_err("ALSA: seq_oss: can't alloc timer\n");
                rc = -ENOMEM;
                goto _error;
        }
        qinfo.queue = queue;
        rc = call_ctl(SNDRV_SEQ_IOCTL_DELETE_QUEUE, &qinfo);
        if (rc < 0)
-               printk(KERN_ERR "seq-oss: unable to delete queue %d (%d)\n", queue, rc);
+               pr_err("ALSA: seq_oss: unable to delete queue %d (%d)\n", queue, rc);
        return rc;
 }
 
 
         * allocate midi info record
         */
        if ((mdev = kzalloc(sizeof(*mdev), GFP_KERNEL)) == NULL) {
-               snd_printk(KERN_ERR "can't malloc midi info\n");
+               pr_err("ALSA: seq_oss: can't malloc midi info\n");
                return -ENOMEM;
        }
 
 
        /* create MIDI coder */
        if (snd_midi_event_new(MAX_MIDI_EVENT_BUF, &mdev->coder) < 0) {
-               snd_printk(KERN_ERR "can't malloc midi coder\n");
+               pr_err("ALSA: seq_oss: can't malloc midi coder\n");
                kfree(mdev);
                return -ENOMEM;
        }
 
        struct seq_oss_readq *q;
 
        if ((q = kzalloc(sizeof(*q), GFP_KERNEL)) == NULL) {
-               snd_printk(KERN_ERR "can't malloc read queue\n");
+               pr_err("ALSA: seq_oss: can't malloc read queue\n");
                return NULL;
        }
 
        if ((q->q = kcalloc(maxlen, sizeof(union evrec), GFP_KERNEL)) == NULL) {
-               snd_printk(KERN_ERR "can't malloc read queue buffer\n");
+               pr_err("ALSA: seq_oss: can't malloc read queue buffer\n");
                kfree(q);
                return NULL;
        }
 
        unsigned long flags;
 
        if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) {
-               snd_printk(KERN_ERR "can't malloc synth info\n");
+               pr_err("ALSA: seq_oss: can't malloc synth info\n");
                return -ENOMEM;
        }
        rec->seq_device = -1;
        if (i >= max_synth_devs) {
                if (max_synth_devs >= SNDRV_SEQ_OSS_MAX_SYNTH_DEVS) {
                        spin_unlock_irqrestore(®ister_lock, flags);
-                       snd_printk(KERN_ERR "no more synth slot\n");
+                       pr_err("ALSA: seq_oss: no more synth slot\n");
                        kfree(rec);
                        return -ENOMEM;
                }
        }
        if (index >= max_synth_devs) {
                spin_unlock_irqrestore(®ister_lock, flags);
-               snd_printk(KERN_ERR "can't unregister synth\n");
+               pr_err("ALSA: seq_oss: can't unregister synth\n");
                return -EINVAL;
        }
        synth_devs[index] = NULL;
                if (info->nr_voices > 0) {
                        info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL);
                        if (!info->ch) {
-                               snd_printk(KERN_ERR "Cannot malloc\n");
+                               pr_err("ALSA: seq_oss: Cannot malloc voices\n");
                                rec->oper.close(&info->arg);
                                module_put(rec->oper.owner);
                                snd_use_lock_free(&rec->use_lock);