[ALSA] Add error messages
[linux-2.6.git] / sound / drivers / opl3 / opl3_lib.c
index cbd37e9..650f3b8 100644 (file)
@@ -349,8 +349,10 @@ int snd_opl3_new(struct snd_card *card,
 
        *ropl3 = NULL;
        opl3 = kzalloc(sizeof(*opl3), GFP_KERNEL);
-       if (opl3 == NULL)
+       if (opl3 == NULL) {
+               snd_printk(KERN_ERR "opl3: cannot allocate\n");
                return -ENOMEM;
+       }
 
        opl3->card = card;
        opl3->hardware = hardware;