Module Name: src Committed By: jym Date: Sat Aug 14 21:01:26 UTC 2010
Modified Files: src/sys/dev/usb: if_atu.c Log Message: Only print the debug message about failed remapping when ATU_QUIRK_NO_REMAP is not set in the atu_quirk flags. '!' takes precedence over bitwise operation '&', so use parenthesis. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/dev/usb/if_atu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/if_atu.c diff -u src/sys/dev/usb/if_atu.c:1.38 src/sys/dev/usb/if_atu.c:1.39 --- src/sys/dev/usb/if_atu.c:1.38 Mon Apr 5 07:21:48 2010 +++ src/sys/dev/usb/if_atu.c Sat Aug 14 21:01:26 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: if_atu.c,v 1.38 2010/04/05 07:21:48 joerg Exp $ */ +/* $NetBSD: if_atu.c,v 1.39 2010/08/14 21:01:26 jym Exp $ */ /* $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */ /* * Copyright (c) 2003, 2004 @@ -48,7 +48,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.38 2010/04/05 07:21:48 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.39 2010/08/14 21:01:26 jym Exp $"); #include <sys/param.h> @@ -897,7 +897,7 @@ DPRINTFN(15, ("%s: sending remap\n", USBDEVNAME(sc->atu_dev))); err = atu_usb_request(sc, DFU_REMAP, 0, 0, 0, NULL); - if ((err) && (! sc->atu_quirk & ATU_QUIRK_NO_REMAP)) { + if ((err) && !(sc->atu_quirk & ATU_QUIRK_NO_REMAP)) { DPRINTF(("%s: remap failed!\n", USBDEVNAME(sc->atu_dev))); return; }