Skip to content

Commit 12c2ec6

Browse files
committed
Fix debug logging messages to prevent confusion with RestrictEvents' messages.
1 parent 43266ba commit 12c2ec6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

MDMBlock/MDMBlock.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ struct MDMBlockPolicy {
4646

4747
if (err == 0) {
4848
// Uncomment for more verbose output.
49-
DBGLOG_COND(verboseProcessLogging, "rev", "got request %s", pathbuf);
49+
DBGLOG_COND(verboseProcessLogging, "mdmb", "got request %s", pathbuf);
5050

5151
for (auto &proc : procBlacklist) {
5252
if (strcmp(pathbuf, proc) == 0) {
53-
DBGLOG("rev", "restricting process %s", pathbuf);
53+
DBGLOG("mdmb", "restricting process %s", pathbuf);
5454
return EPERM;
5555
}
5656
}
@@ -63,7 +63,7 @@ struct MDMBlockPolicy {
6363
* Default dummy BSD init policy
6464
*/
6565
static void policyInitBSD(mac_policy_conf *conf) {
66-
DBGLOG("rev", "init bsd policy on %u", getKernelVersion());
66+
DBGLOG("mdmb", "init bsd policy on %u", getKernelVersion());
6767
}
6868

6969
/**
@@ -109,7 +109,7 @@ PluginConfiguration ADDPR(config) {
109109
KernelVersion::MountainLion,
110110
KernelVersion::Monterey,
111111
[]() {
112-
DBGLOG("rev", "restriction policy plugin loaded");
112+
DBGLOG("mdmb", "restriction policy plugin loaded");
113113
verboseProcessLogging = checkKernelArgument("-mdmbproc");
114114
mdmBlockPolicy.policy.registerPolicy();
115115
}

0 commit comments

Comments
 (0)