On Tue, Mar 17, 2020 at 09:12:29PM +0700, Robert Elz wrote:
> I'd suggest the following change to deal with the undefined "un"
> variable that appears when USB_DEBUG is defined (the var was deleted
> in the changes - other uses went away).
> 
> I'm not committing this as I am not in a position to even compile
> test it

It does compile!

> (let alone verify that it is correct).
> 
> kre
> 
> Index: if_aue.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/usb/if_aue.c,v
> retrieving revision 1.168
> diff -u -r1.168 if_aue.c
> --- if_aue.c  15 Mar 2020 23:04:50 -0000      1.168
> +++ if_aue.c  17 Mar 2020 14:08:40 -0000
> @@ -1015,7 +1015,8 @@
>  
>       AUEHIST_FUNC();
>       AUEHIST_CALLARGSN(5, "aue%jd: enter cmd %#jx data %#jx",
> -         device_unit(un->un_dev), cmd, (uintptr_t)data, 0);
> +         device_unit(((struct usbnet *)(ifp->if_softc))->un_dev),
> +         cmd, (uintptr_t)data, 0);
>  
>       switch (cmd) {
>       case SIOCADDMULTI:
> 
> 

Reply via email to