summaryrefslogtreecommitdiffstats
path: root/libdm/misc
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2008-10-30 17:54:12 +0000
committerAlasdair Kergon <agk@redhat.com>2008-10-30 17:54:12 +0000
commit301fd74ecf0dd5dc270950863bd9c441d48af056 (patch)
tree1e5e30526166f92367176024df32afe8c7a785ea /libdm/misc
parente8e8fa1ed7986f6502f834fad104c2b9db8c7dd2 (diff)
downloadlvm2-301fd74ecf0dd5dc270950863bd9c441d48af056.tar.gz
lvm2-301fd74ecf0dd5dc270950863bd9c441d48af056.tar.xz
lvm2-301fd74ecf0dd5dc270950863bd9c441d48af056.zip
Add dm-logging.h ready for libdevmapper.
Diffstat (limited to 'libdm/misc')
-rw-r--r--libdm/misc/dm-logging.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/libdm/misc/dm-logging.h b/libdm/misc/dm-logging.h
new file mode 100644
index 00000000..b25bc55b
--- /dev/null
+++ b/libdm/misc/dm-logging.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
+ * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
+ *
+ * This file is part of LVM2.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License v.2.1.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _DM_LOGGING_H
+#define _DM_LOGGING_H
+
+#include "libdevmapper.h"
+
+extern dm_log_fn dm_log;
+
+#define plog(l, x...) dm_log(l, __FILE__, __LINE__, ## x)
+
+#include "log.h"
+
+#endif