Skip to content

Commit

Permalink
Temporarily add more debugging output
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Sep 20, 2024
1 parent 4048081 commit 0c1bf27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/dnsmasq_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ static struct {
// Fork-private copy of the server data the most recent reply came from
static union mysockaddr last_server = {{ 0 }};

unsigned char* pihole_privacylevel = &config.misc.privacylevel.v.privacy_level;
const char *flagnames[] = {"F_IMMORTAL ", "F_NAMEP ", "F_REVERSE ", "F_FORWARD ", "F_DHCP ", "F_NEG ", "F_HOSTS ", "F_IPV4 ", "F_IPV6 ", "F_BIGNAME ", "F_NXDOMAIN ", "F_CNAME ", "F_DNSKEY ", "F_CONFIG ", "F_DS ", "F_DNSSECOK ", "F_UPSTREAM ", "F_RRNAME ", "F_SERVER ", "F_QUERY ", "F_NOERR ", "F_AUTH ", "F_DNSSEC ", "F_KEYTAG ", "F_SECSTAT ", "F_NO_RR ", "F_IPSET ", "F_NOEXTRA ", "F_DOMAINSRV", "F_RCODE", "F_RR", "F_STALE" };

void FTL_hook(unsigned int flags, const char *name, union all_addr *addr, char *arg, int id, unsigned short type, const char* file, const int line)
Expand Down
2 changes: 2 additions & 0 deletions src/lua/lobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "lstring.h"
#include "lvm.h"

#include "log.h"

/*
** Computes ceil(log2(x))
Expand Down Expand Up @@ -484,6 +485,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) {
buff.L = L;
while ((e = strchr(fmt, '%')) != NULL) {
addstr2buff(&buff, fmt, e - fmt); /* add 'fmt' up to '%' */
log_debug(DEBUG_WEBSERVER, "fmt: \"%s\", switch: %c", fmt, *(e + 1));
switch (*(e + 1)) { /* conversion specifier */
case 's': { /* zero-terminated string */
const char *s = va_arg(argp, char *);
Expand Down

0 comments on commit 0c1bf27

Please sign in to comment.