(svn r2521) -Codechange: Removed trailing "\n"s from DEBUG statements

This commit is contained in:
celestar 2005-07-05 17:47:10 +00:00
parent 7b39e32c93
commit b29556e6b5
4 changed files with 9 additions and 9 deletions

View File

@ -1059,7 +1059,7 @@ void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest,
}
break;
default:
DEBUG(net, 0)("[NET][Server] Received unknown destination type %d. Doing broadcast instead.\n");
DEBUG(net, 0)("[NET][Server] Received unknown destination type %d. Doing broadcast instead.");
/* fall-through to next case */
case DESTTYPE_BROADCAST:
FOR_ALL_CLIENTS(cs) {

View File

@ -1813,7 +1813,7 @@ static void GRFInfo(byte *buf, int len)
_cur_grffile->grfid = grfid;
_cur_grffile->flags |= 0x0001; /* set active flag */
DEBUG(grf, 1) ("[%s] Loaded GRFv%d set %08lx - %s:\n%s\n",
DEBUG(grf, 1) ("[%s] Loaded GRFv%d set %08lx - %s:\n%s",
_cur_grffile->filename, version, grfid, name, info);
}

View File

@ -147,13 +147,13 @@ static bool MakeBmpImage(const char *name, ScreenshotCallback *callb, void *user
static void PNGAPI png_my_error(png_structp png_ptr, png_const_charp message)
{
DEBUG(misc, 0) ("ERROR(libpng): %s - %s\n", message, (char *)png_get_error_ptr(png_ptr));
DEBUG(misc, 0) ("ERROR(libpng): %s - %s", message, (char *)png_get_error_ptr(png_ptr));
longjmp(png_ptr->jmpbuf, 1);
}
static void PNGAPI png_my_warning(png_structp png_ptr, png_const_charp message)
{
DEBUG(misc, 0) ("WARNING(libpng): %s - %s\n", message, (char *)png_get_error_ptr(png_ptr));
DEBUG(misc, 0) ("WARNING(libpng): %s - %s", message, (char *)png_get_error_ptr(png_ptr));
}
static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *userdata, uint w, uint h, int pixelformat, const Colour *palette)

View File

@ -360,7 +360,7 @@ void DrawGroundSpriteAt(uint32 image, int32 x, int32 y, byte z)
ts = (TileSpriteToDraw*)vd->spritelist_mem;
if ((byte*)ts >= vd->eof_spritelist_mem) {
DEBUG(misc, 0) ("Out of sprite mem\n");
DEBUG(misc, 0) ("Out of sprite mem");
return;
}
@ -432,7 +432,7 @@ void AddSortableSpriteToDraw(uint32 image, int x, int y, int w, int h, byte dz,
ps = (ParentSpriteToDraw*)vd->spritelist_mem;
if ((byte*)ps >= vd->eof_spritelist_mem) {
DEBUG(misc, 0) ("Out of sprite mem\n");
DEBUG(misc, 0) ("Out of sprite mem");
return;
}
if (vd->parent_list >= vd->eof_parent_list) {
@ -442,7 +442,7 @@ void AddSortableSpriteToDraw(uint32 image, int x, int y, int w, int h, byte dz,
// parent_list somewhere below to a higher number.
// This can not really hurt you, it just gives some black
// spots on the screen ;)
DEBUG(misc, 0) ("Out of sprite mem (parent_list)\n");
DEBUG(misc, 0) ("Out of sprite mem (parent_list)");
return;
}
@ -498,7 +498,7 @@ void AddChildSpriteScreen(uint32 image, int x, int y)
cs = (ChildScreenSpriteToDraw*) vd->spritelist_mem;
if ((byte*)cs >= vd->eof_spritelist_mem) {
DEBUG(misc,0) ("Out of sprite mem\n");
DEBUG(misc, 0) ("Out of sprite mem");
return;
}
@ -524,7 +524,7 @@ void *AddStringToDraw(int x, int y, StringID string, uint32 params_1, uint32 par
ss = (StringSpriteToDraw*)vd->spritelist_mem;
if ((byte*)ss >= vd->eof_spritelist_mem) {
DEBUG(misc, 0) ("Out of sprite mem\n");
DEBUG(misc, 0) ("Out of sprite mem");
return NULL;
}