Deleted Added
full compact
if_ath_alq.c (242781) if_ath_alq.c (242813)
1/*-
2 * Copyright (c) 2012 Adrian Chadd
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
1/*-
2 * Copyright (c) 2012 Adrian Chadd
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
29 * $FreeBSD: head/sys/dev/ath/if_ath_alq.c 242781 2012-11-08 18:07:29Z adrian $
29 * $FreeBSD: head/sys/dev/ath/if_ath_alq.c 242813 2012-11-09 01:28:11Z adrian $
30 */
31#include "opt_ah.h"
32#include "opt_ath.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/module.h>

--- 25 unchanged lines hidden (view full) ---

63
64void
65if_ath_alq_init(struct if_ath_alq *alq, const char *devname)
66{
67
68 bzero(alq, sizeof(*alq));
69
70 strncpy(alq->sc_alq_devname, devname, ATH_ALQ_DEVNAME_LEN);
30 */
31#include "opt_ah.h"
32#include "opt_ath.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/module.h>

--- 25 unchanged lines hidden (view full) ---

63
64void
65if_ath_alq_init(struct if_ath_alq *alq, const char *devname)
66{
67
68 bzero(alq, sizeof(*alq));
69
70 strncpy(alq->sc_alq_devname, devname, ATH_ALQ_DEVNAME_LEN);
71 printf("%s (%s): detached\n", __func__, alq->sc_alq_devname);
71 printf("%s (%s): attached\n", __func__, alq->sc_alq_devname);
72 snprintf(alq->sc_alq_filename, ATH_ALQ_FILENAME_LEN,
73 "/tmp/ath_%s_alq.log", alq->sc_alq_devname);
74
75 /* XXX too conservative, right? */
76 alq->sc_alq_qsize = (64*1024);
77}
78
79void

--- 93 unchanged lines hidden ---
72 snprintf(alq->sc_alq_filename, ATH_ALQ_FILENAME_LEN,
73 "/tmp/ath_%s_alq.log", alq->sc_alq_devname);
74
75 /* XXX too conservative, right? */
76 alq->sc_alq_qsize = (64*1024);
77}
78
79void

--- 93 unchanged lines hidden ---