From de6e2de211a297af0280c9d807fcafbe8c7a7fe0 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Wed, 8 Dec 2021 14:10:23 -0800 Subject: [PATCH] Squash w Use filter_fieldclass_info::as_string to prnt fields/remove markdown --- userspace/libsinsp/fields_info.cpp | 9 --------- userspace/libsinsp/fields_info.h | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/userspace/libsinsp/fields_info.cpp b/userspace/libsinsp/fields_info.cpp index 2c204f9008..69ab873ab7 100644 --- a/userspace/libsinsp/fields_info.cpp +++ b/userspace/libsinsp/fields_info.cpp @@ -18,7 +18,6 @@ limitations under the License. // // Various helper functions to render stuff on the screen // -#define __STDC_FORMAT_MACROS #include #include #include @@ -27,14 +26,6 @@ limitations under the License. #include #include "fields_info.h" -// Must match the value in the zsh tab completion -#define DESCRIPTION_TEXT_START 16 - - -#define CONSOLE_LINE_LEN 79 -#define PRINTF_WRAP_CPROC(x) #x -#define PRINTF_WRAP(x) PRINTF_WRAP_CPROC(x) - void list_fields(bool verbose) { vector fc_plugins; diff --git a/userspace/libsinsp/fields_info.h b/userspace/libsinsp/fields_info.h index a298ffab4d..121d180195 100644 --- a/userspace/libsinsp/fields_info.h +++ b/userspace/libsinsp/fields_info.h @@ -24,5 +24,5 @@ class sinsp; // // Printer functions // -void list_fields(bool verbose, bool names_only=false); +void list_fields(bool verbose); void list_events(sinsp* inspector);