Skip to content

Bad logging format #1230

Open
Open
@xezon

Description

@xezon

Some code calls logging functions like so:

char Buf[256];
sprintf(Buf,"After terrainlogic->loadmap=%f",((double)(endTime64-startTime64)/(double)(freq64)*1000.0));
DEBUG_LOG(("%s", Buf));

This is too much effort.

Simpler:

DEBUG_LOG(("After terrainlogic->loadmap=%f", ((double)(endTime64-startTime64)/(double)(freq64)*1000.0));

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIs mostly debug functionalityMinorSeverity: Minor < Major < Critical < BlockerRefactorEdits the code with insignificant behavior changes, is never user facing

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions