Skip to content

Commit 22b6781

Browse files
committed
Remove unused parameter 'is_probe'
This parameter is not used anymore. It stopped being relevant when we merged all the probes into the main oscap process.
1 parent e0b7bd3 commit 22b6781

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/common/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ oscap_verbosity_levels oscap_verbosity_level_from_cstr(const char *level_name)
129129
return oscap_string_to_enum(OSCAP_VERBOSITY_LEVELS, level_name);
130130
}
131131

132-
bool oscap_set_verbose(const char *verbosity_level, const char *filename, bool is_probe)
132+
bool oscap_set_verbose(const char *verbosity_level, const char *filename)
133133
{
134134
if (verbosity_level == NULL) {
135135
verbosity_level = "WARNING";

src/common/public/oscap_debug.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ OSCAP_API void __oscap_dlprintf(int level, const char *file, const char *fn, siz
5151
* @param verbosity_level Verbosity level
5252
* @param filename Name of file used as output file for store debugging
5353
* and other additional information.
54-
* @param is_probe Determines whether the function is called
55-
* from a probe (true) or from the base library (false).
5654
* @return When an error occured, returns false, otherwise true.
5755
*/
58-
OSCAP_API bool oscap_set_verbose(const char *verbosity_level, const char *filename, bool is_probe);
56+
OSCAP_API bool oscap_set_verbose(const char *verbosity_level, const char *filename);
5957

6058
/**
6159
* Parse verbosity level from a string.

utils/oscap-tool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ int oscap_module_process(struct oscap_module *module, int argc, char **argv)
375375
if (!check_verbose_options(&action)) {
376376
goto cleanup;
377377
}
378-
if (!oscap_set_verbose(action.verbosity_level, action.f_verbose_log, false)) {
378+
if (!oscap_set_verbose(action.verbosity_level, action.f_verbose_log)) {
379379
goto cleanup;
380380
}
381381
ret = oscap_module_call(&action);

0 commit comments

Comments
 (0)