X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fbfcr%2Fbfcr.h;h=8326e310c315a2994ae2adcb7e361846249047f3;hb=516bf0a77e025cfccce2fa400b757e94dc0bf1d8;hp=edf3de15009f142b964094a025b063d47e5494a0;hpb=c4a714d25ae081f61a9be28d4d76a0dd694d459b;p=babeltrace.git diff --git a/src/plugins/ctf/common/bfcr/bfcr.h b/src/plugins/ctf/common/bfcr/bfcr.h index edf3de15..8326e310 100644 --- a/src/plugins/ctf/common/bfcr/bfcr.h +++ b/src/plugins/ctf/common/bfcr/bfcr.h @@ -1,31 +1,15 @@ -#ifndef CTF_BFCR_H -#define CTF_BFCR_H - /* - * Babeltrace - CTF binary field class reader (BFCR) + * SPDX-License-Identifier: MIT * * Copyright (c) 2015-2016 EfficiOS Inc. and Linux Foundation * Copyright (c) 2015-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. + * Babeltrace - CTF binary field class reader (BFCR) */ +#ifndef CTF_BFCR_H +#define CTF_BFCR_H + #include #include #include @@ -362,18 +346,18 @@ const char *bt_bfcr_status_string(enum bt_bfcr_status status) { switch (status) { case BT_BFCR_STATUS_ENOMEM: - return "BT_BFCR_STATUS_ENOMEM"; + return "ENOMEM"; case BT_BFCR_STATUS_EOF: - return "BT_BFCR_STATUS_EOF"; + return "EOF"; case BT_BFCR_STATUS_INVAL: - return "BT_BFCR_STATUS_INVAL"; + return "INVAL"; case BT_BFCR_STATUS_ERROR: - return "BT_BFCR_STATUS_ERROR"; + return "ERROR"; case BT_BFCR_STATUS_OK: - return "BT_BFCR_STATUS_OK"; - default: - return "(unknown)"; + return "OK"; } + + bt_common_abort(); } #endif /* CTF_BFCR_H */