Fix dprintf statements in meterpreter C src #6334
parent
70f923ce90
commit
4b2d8f88e8
|
@ -58,8 +58,8 @@ DWORD scheduler_destroy( VOID )
|
|||
polltable = NULL;
|
||||
nentries = ntableentries = 0;
|
||||
}
|
||||
|
||||
dprintf("[%s] Now for the fun part, iterating through list and removing items");
|
||||
|
||||
dprintf("[%s] Now for the fun part, iterating through list and removing items", __FUNCTION__);
|
||||
|
||||
LIST_FOREACH_SAFE(current, &WEHead, link, tmp)
|
||||
{
|
||||
|
@ -84,7 +84,7 @@ DWORD scheduler_destroy( VOID )
|
|||
DWORD scheduler_initialize( Remote * remote )
|
||||
{
|
||||
if(scheduler_thread) {
|
||||
dprintf("[%s] Hmmm. scheduler_initialize() called twice?");
|
||||
dprintf("[%s] Hmmm. scheduler_initialize() called twice?", __FUNCTION__);
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ char *get_interface_name_by_index(unsigned int fidx)
|
|||
interfaces = int_iter = NULL;
|
||||
|
||||
if(pcap_findalldevs(&interfaces, errbuf) == -1) {
|
||||
dprintf("[%s] Hmm, out of memory? (errno = %d, but probably not useful)", errno);
|
||||
dprintf("[%s] Hmm, out of memory? (errno = %d, but probably not useful)", __FUNCTION__, errno);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -399,7 +399,7 @@ void packet_handler(u_char *user, const struct pcap_pkthdr *h, const u_char *byt
|
|||
|
||||
pkt = calloc(sizeof(PeterPacket) + h->caplen, 1);
|
||||
if(! pkt) {
|
||||
dprintf("[%s] ho hum, no memory. maybe a pcap_breakloop / stop running?");
|
||||
dprintf("[%s] ho hum, no memory. maybe a pcap_breakloop / stop running?", __FUNCTION__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ static VOID server_socket_flush( Remote * remote )
|
|||
break;
|
||||
|
||||
ret = recv(fd, buff, sizeof(buff), 0);
|
||||
dprintf("[SERVER] Flushed %d bytes from the buffer");
|
||||
dprintf("[SERVER] Flushed %d bytes from the buffer", ret);
|
||||
|
||||
// The socket closed while we waited
|
||||
if(ret == 0) {
|
||||
|
|
Loading…
Reference in New Issue