mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
Remove trailing whitespace
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; version 2 of the License.
|
||||
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY except by those people which sell it, which
|
||||
are required to give you total support for your newly bought product;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
@@ -26,11 +26,11 @@
|
||||
void log_message_mob(LogType type, Mob *who, const char *fmt, ...) {
|
||||
if(!who->IsLoggingEnabled())
|
||||
return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common
|
||||
|
||||
|
||||
char prefix_buffer[256];
|
||||
snprintf(prefix_buffer, 255, "[%s] %s: ", log_type_info[type].name, who->GetName());
|
||||
prefix_buffer[255] = '\0';
|
||||
|
||||
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
LogFile->writePVA(EQEMuLog::Debug, prefix_buffer, fmt, args);
|
||||
@@ -40,11 +40,11 @@ void log_message_mob(LogType type, Mob *who, const char *fmt, ...) {
|
||||
void log_message_mobVA(LogType type, Mob *who, const char *fmt, va_list args) {
|
||||
if(!who->IsLoggingEnabled())
|
||||
return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common
|
||||
|
||||
|
||||
char prefix_buffer[256];
|
||||
snprintf(prefix_buffer, 255, "[%s] %s: ", log_type_info[type].name, who->GetName());
|
||||
prefix_buffer[255] = '\0';
|
||||
|
||||
|
||||
LogFile->writePVA(EQEMuLog::Debug, prefix_buffer, fmt, args);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ void log_hex_mob(LogType type, Mob *who, const char *data, uint32 length, uint8
|
||||
void log_packet_mob(LogType type, Mob *who, const BasePacket *p) {
|
||||
if(!who->IsLoggingEnabled())
|
||||
return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common
|
||||
|
||||
|
||||
char buffer[80];
|
||||
p->build_header_dump(buffer);
|
||||
log_message(type,"[%s] %s: %s", log_type_info[type].name, who->GetName(), buffer);
|
||||
|
||||
Reference in New Issue
Block a user