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

Itamar itamar at mellanox.co.il
Mon May 16 10:22:47 PDT 2005


delete dead code (not in Makefile)

Signed-off-by: Itamar Rabenstein <itamar at mellanox.co.il>


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



More information about the general mailing list