1
0
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:
Pawel Jakub Dawidek 2010-09-25 10:32:04 +00:00
parent 350e8df8de
commit f95168e08d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213165
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;