Remove debug printout of major/minor numbers, print name instead.
This commit is contained in:
parent
27d177bf37
commit
cd6c51d11d
@ -475,8 +475,8 @@ scopen(struct cdev *dev, int flag, int mode, struct thread *td)
|
||||
#endif
|
||||
int error;
|
||||
|
||||
DPRINTF(5, ("scopen: dev:%d,%d, unit:%d, vty:%d\n",
|
||||
major(dev), minor(dev), unit, SC_VTY(dev)));
|
||||
DPRINTF(5, ("scopen: dev:%s, unit:%d, vty:%d\n",
|
||||
devtoname(dev), unit, SC_VTY(dev)));
|
||||
|
||||
tp = dev->si_tty;
|
||||
sc = sc_get_softc(unit, (sc_console_unit == unit) ? SC_KERNEL_CONSOLE : 0);
|
||||
|
@ -70,8 +70,8 @@ smopen(struct cdev *dev, int flag, int mode, struct thread *td)
|
||||
{
|
||||
struct tty *tp;
|
||||
|
||||
DPRINTF(5, ("smopen: dev:%d,%d, vty:%d\n",
|
||||
major(dev), minor(dev), SC_VTY(dev)));
|
||||
DPRINTF(5, ("smopen: dev:%s, vty:%d\n",
|
||||
devtoname(dev), SC_VTY(dev)));
|
||||
|
||||
#if 0
|
||||
if (SC_VTY(dev) != SC_MOUSE)
|
||||
|
@ -56,6 +56,7 @@
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/bio.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/mount.h>
|
||||
@ -1833,7 +1834,7 @@ msdosfs_print(ap)
|
||||
|
||||
printf("\tstartcluster %lu, dircluster %lu, diroffset %lu, ",
|
||||
dep->de_StartCluster, dep->de_dirclust, dep->de_diroffset);
|
||||
printf("on dev (%d, %d)\n", major(dep->de_dev), minor(dep->de_dev));
|
||||
printf("on dev %s\n", devtoname(dep->de_dev));
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -499,8 +499,8 @@ ext2_vfree(pvp, ino, mode)
|
||||
pip = VTOI(pvp);
|
||||
fs = pip->i_e2fs;
|
||||
if ((u_int)ino > fs->s_inodes_per_group * fs->s_groups_count)
|
||||
panic("ext2_vfree: range: dev = (%d, %d), ino = %d, fs = %s",
|
||||
major(pip->i_dev), minor(pip->i_dev), ino, fs->fs_fsmnt);
|
||||
panic("ext2_vfree: range: dev = %s, ino = %d, fs = %s",
|
||||
devtoname(pip->i_dev), ino, fs->fs_fsmnt);
|
||||
|
||||
/* ext2_debug("ext2_vfree (%d, %d) called\n", pip->i_number, mode);
|
||||
*/
|
||||
|
@ -1448,8 +1448,8 @@ ext2_print(ap)
|
||||
struct vnode *vp = ap->a_vp;
|
||||
struct inode *ip = VTOI(vp);
|
||||
|
||||
printf("\tino %lu, on dev %s (%d, %d)", (u_long)ip->i_number,
|
||||
devtoname(ip->i_dev), major(ip->i_dev), minor(ip->i_dev));
|
||||
printf("\tino %lu, on dev %s", (u_long)ip->i_number,
|
||||
devtoname(ip->i_dev));
|
||||
if (vp->v_type == VFIFO)
|
||||
fifo_printinfo(vp);
|
||||
printf("\n");
|
||||
|
@ -499,8 +499,8 @@ ext2_vfree(pvp, ino, mode)
|
||||
pip = VTOI(pvp);
|
||||
fs = pip->i_e2fs;
|
||||
if ((u_int)ino > fs->s_inodes_per_group * fs->s_groups_count)
|
||||
panic("ext2_vfree: range: dev = (%d, %d), ino = %d, fs = %s",
|
||||
major(pip->i_dev), minor(pip->i_dev), ino, fs->fs_fsmnt);
|
||||
panic("ext2_vfree: range: dev = %s, ino = %d, fs = %s",
|
||||
devtoname(pip->i_dev), ino, fs->fs_fsmnt);
|
||||
|
||||
/* ext2_debug("ext2_vfree (%d, %d) called\n", pip->i_number, mode);
|
||||
*/
|
||||
|
@ -1448,8 +1448,8 @@ ext2_print(ap)
|
||||
struct vnode *vp = ap->a_vp;
|
||||
struct inode *ip = VTOI(vp);
|
||||
|
||||
printf("\tino %lu, on dev %s (%d, %d)", (u_long)ip->i_number,
|
||||
devtoname(ip->i_dev), major(ip->i_dev), minor(ip->i_dev));
|
||||
printf("\tino %lu, on dev %s", (u_long)ip->i_number,
|
||||
devtoname(ip->i_dev));
|
||||
if (vp->v_type == VFIFO)
|
||||
fifo_printinfo(vp);
|
||||
printf("\n");
|
||||
|
@ -1964,8 +1964,8 @@ ufs_print(ap)
|
||||
struct vnode *vp = ap->a_vp;
|
||||
struct inode *ip = VTOI(vp);
|
||||
|
||||
printf("\tino %lu, on dev %s (%d, %d)", (u_long)ip->i_number,
|
||||
devtoname(ip->i_dev), major(ip->i_dev), minor(ip->i_dev));
|
||||
printf("\tino %lu, on dev %s", (u_long)ip->i_number,
|
||||
devtoname(ip->i_dev));
|
||||
if (vp->v_type == VFIFO)
|
||||
fifo_printinfo(vp);
|
||||
printf("\n");
|
||||
|
Loading…
Reference in New Issue
Block a user