Re: [PATCH 14 of 20] ipath - infiniband verbs header

From: Pekka Enberg
Date: Thu Dec 29 2005 - 03:19:56 EST


On 12/29/05, Bryan O'Sullivan <bos@xxxxxxxxxxxxx> wrote:
> diff -r f9bcd9de3548 -r 26993cb5faee drivers/infiniband/hw/ipath/verbs_debug.h
> --- /dev/null Thu Jan 1 00:00:00 1970 +0000
> +++ b/drivers/infiniband/hw/ipath/verbs_debug.h Wed Dec 28 14:19:43 2005 -0800
> +#ifndef _VERBS_DEBUG_H
> +#define _VERBS_DEBUG_H
> +
> +/*
> + * This file contains tracing code for the ib_ipath kernel module.
> + */
> +#ifndef _VERBS_DEBUGGING /* tracing enabled or not */
> +#define _VERBS_DEBUGGING 1
> +#endif
> +
> +extern unsigned ib_ipath_debug;
> +
> +#define _VERBS_ERROR(fmt,...) \
> + do { \
> + printk(KERN_ERR "%s: " fmt, "ib_ipath", ##__VA_ARGS__); \
> + } while(0)

[snip, snip]

Please consider using dev_dbg, dev_err, and friends from <linux/device.h>.

Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/