From: Philippe Proulx Date: Mon, 17 Jun 2019 23:28:23 +0000 (-0400) Subject: Remove unused `src/plugins/ctf/print.h` X-Git-Tag: v2.0.0-rc1~669 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1a4e73838b7aa65ddf0315b6d0684cb5c606d66f;p=babeltrace.git Remove unused `src/plugins/ctf/print.h` Signed-off-by: Philippe Proulx Change-Id: I989c98d9273f69362fd9f4d7390a91323e780886 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1492 Tested-by: jenkins Reviewed-by: Francis Deslauriers --- diff --git a/src/plugins/ctf/Makefile.am b/src/plugins/ctf/Makefile.am index bf962693..4b19f56d 100644 --- a/src/plugins/ctf/Makefile.am +++ b/src/plugins/ctf/Makefile.am @@ -3,8 +3,6 @@ SUBDIRS = common \ fs-sink \ lttng-live -noinst_HEADERS = print.h - plugindir = "$(PLUGINSDIR)" plugin_LTLIBRARIES = babeltrace-plugin-ctf.la diff --git a/src/plugins/ctf/print.h b/src/plugins/ctf/print.h deleted file mode 100644 index eab99d77..00000000 --- a/src/plugins/ctf/print.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef CTF_PRINT_H -#define CTF_PRINT_H - -/* - * Define PRINT_PREFIX, PRINT_DBG_CHECK, and PRINT_ERR_STREAM, then - * include this file. - * - * Copyright (c) 2016 Philippe Proulx - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -#include - -#define PERR(fmt, ...) \ - do { \ - if (PRINT_ERR_STREAM) { \ - fprintf(PRINT_ERR_STREAM, \ - "[error " PRINT_PREFIX "] " fmt, \ - ##__VA_ARGS__); \ - } \ - } while (0) - -#define PWARN(fmt, ...) \ - do { \ - if (PRINT_ERR_STREAM) { \ - fprintf(PRINT_ERR_STREAM, \ - "[warning " PRINT_PREFIX "] " fmt, \ - ##__VA_ARGS__); \ - } \ - } while (0) - -#define PDBG(fmt, ...) \ - do { \ - if (PRINT_DBG_CHECK) { \ - fprintf(stderr, \ - "[debug " PRINT_PREFIX "] " fmt, \ - ##__VA_ARGS__); \ - } \ - } while (0) - -#endif /* CTF_PRINT_H */