inodenum = be32_to_cpu(dirslot->inode);
                        namelen  = dirslot->namelen;
                        nameptr  = dirslot->name;
-
-#ifdef DEBUG
-                       printk(KERN_DEBUG "EFS: readdir(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", block, slot, dirblock->slots-1, inodenum, nameptr, namelen);
-#endif
+                       pr_debug("%s(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n",
+                                __func__, block, slot, dirblock->slots-1,
+                                inodenum, nameptr, namelen);
                        if (!namelen)
                                continue;
                        /* found the next entry */
 
        }
 
        brelse(bh);
-   
-#ifdef DEBUG
-       printk(KERN_DEBUG "EFS: efs_iget(): inode %lu, extents %d, mode %o\n",
-               inode->i_ino, in->numextents, inode->i_mode);
-#endif
-
+       pr_debug("efs_iget(): inode %lu, extents %d, mode %o\n",
+                inode->i_ino, in->numextents, inode->i_mode);
        switch (inode->i_mode & S_IFMT) {
                case S_IFDIR: 
                        inode->i_op = &efs_dir_inode_operations; 
                return 0;
        }
 
-#ifdef DEBUG
-       printk(KERN_DEBUG "EFS: map_block(): indirect search for logical block %u\n", block);
-#endif
+       pr_debug("%s(): indirect search for logical block %u\n",
+                __func__, block);
        direxts = in->extents[0].cooked.ex_offset;
        indexts = in->numextents;
 
                                       __func__, iblock);
                                return 0;
                        }
-#ifdef DEBUG
-                       printk(KERN_DEBUG "EFS: map_block(): read indirect extent block %d\n", iblock);
-#endif
+                       pr_debug("%s(): read indirect extent block %d\n",
+                                __func__, iblock);
                        first = 0;
                        lastblock = iblock;
                }
 
        }
 
 #ifdef DEBUG
-       printk(KERN_DEBUG "EFS: bf: \"%16s\"\n", vh->vh_bootfile);
+       pr_debug("bf: \"%16s\"\n", vh->vh_bootfile);
 
        for(i = 0; i < NVDIR; i++) {
                int     j;
                name[j] = (char) 0;
 
                if (name[0]) {
-                       printk(KERN_DEBUG "EFS: vh: %8s block: 0x%08x size: 0x%08x\n",
-                               name,
-                               (int) be32_to_cpu(vh->vh_vd[i].vd_lbn),
+                       pr_debug("vh: %8s block: 0x%08x size: 0x%08x\n",
+                               name, (int) be32_to_cpu(vh->vh_vd[i].vd_lbn),
                                (int) be32_to_cpu(vh->vh_vd[i].vd_nbytes));
                }
        }
                }
 #ifdef DEBUG
                if (be32_to_cpu(vh->vh_pt[i].pt_nblks)) {
-                       printk(KERN_DEBUG "EFS: pt %2d: start: %08d size: %08d type: 0x%02x (%s)\n",
-                               i,
-                               (int) be32_to_cpu(vh->vh_pt[i].pt_firstlbn),
-                               (int) be32_to_cpu(vh->vh_pt[i].pt_nblks),
-                               pt_type,
-                               (pt_entry->pt_name) ? pt_entry->pt_name : "unknown");
+                       pr_debug("pt %2d: start: %08d size: %08d type: 0x%02x (%s)\n",
+                                i, (int)be32_to_cpu(vh->vh_pt[i].pt_firstlbn),
+                                (int)be32_to_cpu(vh->vh_pt[i].pt_nblks),
+                                pt_type, (pt_entry->pt_name) ?
+                                pt_entry->pt_name : "unknown");
                }
 #endif
                if (IS_EFS(pt_type)) {