From owner-p4-projects@FreeBSD.ORG Sun Aug 13 15:14:29 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D41C016A4DF; Sun, 13 Aug 2006 15:14:28 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 962DE16A4DD for ; Sun, 13 Aug 2006 15:14:28 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D60643D45 for ; Sun, 13 Aug 2006 15:14:28 +0000 (GMT) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7DFESd4035158 for ; Sun, 13 Aug 2006 15:14:28 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7DFESgp035155 for perforce@freebsd.org; Sun, 13 Aug 2006 15:14:28 GMT (envelope-from hselasky@FreeBSD.org) Date: Sun, 13 Aug 2006 15:14:28 GMT Message-Id: <200608131514.k7DFESgp035155@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 103772 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2006 15:14:29 -0000 http://perforce.freebsd.org/chv.cgi?CH=103772 Change 103772 by hselasky@hselasky_mini_itx on 2006/08/13 15:13:51 Add some more debugging statements. Bugfix: Make sure that D_TRACKCLOSE is set for cdevs created by the USB cdev system. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_cdev.c#5 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_cdev.c#5 (text+ko) ==== @@ -943,12 +943,16 @@ mtx_unlock(&Giant); + DPRINTF(0, "x=0x%08x\n", x); + return x; } static void usb_cdev_free_minor(u_int32_t x) { + DPRINTF(0, "x=0x%08x\n", x); + if (x & 0x00FF00) { /* invalid minor */ return; @@ -1351,4 +1355,5 @@ .d_ioctl = usb_cdev_ioctl, .d_poll = usb_cdev_poll, .d_name = "usb_cdev", + .d_flags = D_TRACKCLOSE, };