[openib-general] Re: [PATCH][kdapl] delete dead code (not in Makefile)

James Lentini jlentini at netapp.com
Tue May 17 12:31:50 PDT 2005


Committed in revision 2367.

On Mon, 16 May 2005, Itamar wrote:

itamar> 
itamar> delete dead code (not in Makefile)
itamar> 
itamar> Signed-off-by: Itamar Rabenstein <itamar at mellanox.co.il>
itamar> 
itamar> 
itamar> Index: dapl_debug.c
itamar> ===================================================================
itamar> --- dapl_debug.c	(revision 2357)
itamar> +++ dapl_debug.c	(working copy)
itamar> @@ -1,45 +0,0 @@
itamar> -/*
itamar> - * Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved.
itamar> - *
itamar> - * This Software is licensed under one of the following licenses:
itamar> - *
itamar> - * 1) under the terms of the "Common Public License 1.0" a copy of which is
itamar> - *    available from the Open Source Initiative, see
itamar> - *    http://www.opensource.org/licenses/cpl.php.
itamar> - *
itamar> - * 2) under the terms of the "The BSD License" a copy of which is
itamar> - *    available from the Open Source Initiative, see
itamar> - *    http://www.opensource.org/licenses/bsd-license.php.
itamar> - *
itamar> - * 3) under the terms of the "GNU General Public License (GPL) Version 2" a
itamar> - *    copy of which is available from the Open Source Initiative, see
itamar> - *    http://www.opensource.org/licenses/gpl-license.php.
itamar> - *
itamar> - * Licensee has the right to choose one of the above licenses.
itamar> - *
itamar> - * Redistributions of source code must retain the above copyright
itamar> - * notice and one of the license notices.
itamar> - *
itamar> - * Redistributions in binary form must reproduce both the above copyright
itamar> - * notice, one of the license notices in the documentation
itamar> - * and/or other materials provided with the distribution.
itamar> - */
itamar> -
itamar> -#include "dapl_debug.h"
itamar> -#include "dapl_module.h"
itamar> -#include "dapl.h"
itamar> -
itamar> -#ifdef DAPL_DBG
itamar> -
itamar> -void dapl_dbg_log(DAPL_DBG_TYPE type, const char *fmt, ...)
itamar> -{
itamar> -	va_list args;
itamar> -
itamar> -	if (type & g_dapl_dbg_type) {
itamar> -		va_start(args, fmt);
itamar> -		dapl_os_vprintf(fmt, args);
itamar> -		va_end(args);
itamar> -	}
itamar> -}
itamar> -
itamar> -#endif				/* DAPL_DBG */
itamar> Index: dapl_debug.h
itamar> ===================================================================
itamar> --- dapl_debug.h	(revision 2357)
itamar> +++ dapl_debug.h	(working copy)
itamar> @@ -1,63 +0,0 @@
itamar> -/*
itamar> - * Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved.
itamar> - *
itamar> - * This Software is licensed under one of the following licenses:
itamar> - *
itamar> - * 1) under the terms of the "Common Public License 1.0" a copy of which is
itamar> - *    available from the Open Source Initiative, see
itamar> - *    http://www.opensource.org/licenses/cpl.php.
itamar> - *
itamar> - * 2) under the terms of the "The BSD License" a copy of which is
itamar> - *    available from the Open Source Initiative, see
itamar> - *    http://www.opensource.org/licenses/bsd-license.php.
itamar> - *
itamar> - * 3) under the terms of the "GNU General Public License (GPL) Version 2" a
itamar> - *    copy of which is available from the Open Source Initiative, see
itamar> - *    http://www.opensource.org/licenses/gpl-license.php.
itamar> - *
itamar> - * Licensee has the right to choose one of the above licenses.
itamar> - *
itamar> - * Redistributions of source code must retain the above copyright
itamar> - * notice and one of the license notices.
itamar> - *
itamar> - * Redistributions in binary form must reproduce both the above copyright
itamar> - * notice, one of the license notices in the documentation
itamar> - * and/or other materials provided with the distribution.
itamar> - */
itamar> -
itamar> -/*
itamar> - *
itamar> - * Defines common deuggging flags and data 
itamar> - *
itamar> - * $Id$
itamar> - */
itamar> -
itamar> -#ifndef DAPL_DEBUG_H
itamar> -#define DAPL_DEBUG_H
itamar> -
itamar> -/*
itamar> - * Use these bits to enable various tracing/debug options. Each bit
itamar> - * represents debugging in a particular subsystem or area of the code.
itamar> - */
itamar> -typedef enum {
itamar> -	DAPL_DBG_TYPE_ERR = 0x0001,
itamar> -	DAPL_DBG_TYPE_WARN = 0x0002,
itamar> -	DAPL_DBG_TYPE_EVD = 0x0004,
itamar> -	DAPL_DBG_TYPE_CM = 0x0008,
itamar> -	DAPL_DBG_TYPE_EP = 0x0010,
itamar> -	DAPL_DBG_TYPE_UTIL = 0x0020,
itamar> -	DAPL_DBG_TYPE_CALLBACK = 0x0040,
itamar> -	DAPL_DBG_TYPE_DTO_COMP_ERR = 0x0080,
itamar> -	DAPL_DBG_TYPE_API = 0x0100,
itamar> -	DAPL_DBG_TYPE_RTN = 0x0200,
itamar> -	DAPL_DBG_TYPE_EXCEPTION = 0x0400,
itamar> -	DAPL_DBG_TYPE_SRQ = 0x0800
itamar> -} DAPL_DBG_TYPE;
itamar> -
itamar> -#if defined(DAPL_DBG)
itamar> -extern void dapl_dbg_log(DAPL_DBG_TYPE type, const char *fmt, ...);
itamar> -#else				/* !DAPL_DBG */
itamar> -#define dapl_dbg_log(...)
itamar> -#endif				/* DAPL_DBG */
itamar> -
itamar> -#endif				/* DAPL_DEBUG_H */
itamar> -- 
itamar> Itamar
itamar> 



More information about the general mailing list