mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Change g_eli_debug to int, so one can turn off any GELI output by setting
kern.geom.eli.debug sysctl to -1. MFC after: 2 weeks
This commit is contained in:
parent
350e8df8de
commit
f95168e08d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213165
@ -56,9 +56,9 @@ MALLOC_DEFINE(M_ELI, "eli data", "GEOM_ELI Data");
|
||||
|
||||
SYSCTL_DECL(_kern_geom);
|
||||
SYSCTL_NODE(_kern_geom, OID_AUTO, eli, CTLFLAG_RW, 0, "GEOM_ELI stuff");
|
||||
u_int g_eli_debug = 0;
|
||||
int g_eli_debug = 0;
|
||||
TUNABLE_INT("kern.geom.eli.debug", &g_eli_debug);
|
||||
SYSCTL_UINT(_kern_geom_eli, OID_AUTO, debug, CTLFLAG_RW, &g_eli_debug, 0,
|
||||
SYSCTL_INT(_kern_geom_eli, OID_AUTO, debug, CTLFLAG_RW, &g_eli_debug, 0,
|
||||
"Debug level");
|
||||
static u_int g_eli_tries = 3;
|
||||
TUNABLE_INT("kern.geom.eli.tries", &g_eli_tries);
|
||||
|
@ -105,7 +105,7 @@
|
||||
#define G_ELI_KEY_SHIFT 20
|
||||
|
||||
#ifdef _KERNEL
|
||||
extern u_int g_eli_debug;
|
||||
extern int g_eli_debug;
|
||||
extern u_int g_eli_overwrites;
|
||||
extern u_int g_eli_batch;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user