]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
When possible use simpler LOG_* macros instead of LOG_*F
authorterencehill <piuntn@gmail.com>
Fri, 15 Feb 2019 17:47:22 +0000 (18:47 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 15 Feb 2019 17:47:22 +0000 (18:47 +0100)
qcsrc/common/debug.qh
qcsrc/common/physics/movetypes/movetypes.qc
qcsrc/lib/intrusivelist.qh
qcsrc/menu/command/menu_cmd.qc
qcsrc/server/bot/default/waypoints.qc
qcsrc/server/command/common.qc
qcsrc/server/command/sv_cmd.qc
qcsrc/server/g_world.qc

index a8a76e47182f9fa67f757ce8428cb9bed355e3d0..55b634a624ce91619b15054f7325ca5cbe071cd7 100644 (file)
@@ -205,8 +205,7 @@ GENERIC_COMMAND(bufstr_get, "Examine a string buffer object")
                {
                        int bufhandle = stof(argv(1));
                        int string_index = stof(argv(2));
-                       string s = bufstr_get(bufhandle, string_index);
-                       LOG_INFOF("%s", s);
+                       LOG_INFO(bufstr_get(bufhandle, string_index));
                        return;
                }
 
index 6a53e57c26f0e2c1c9433efb184df054406e93f2..cbb54cd26e575c8cb6e67740b0b48fa2f02516bf 100644 (file)
@@ -540,7 +540,7 @@ void _Movetype_Physics_Frame(entity this, float movedt)
        {
                case MOVETYPE_PUSH:
                case MOVETYPE_FAKEPUSH:
-                       LOG_DEBUGF("Physics: Lacking QuakeC support for Push movetype, FIX ME by using engine physics!");
+                       LOG_DEBUG("Physics: Lacking QuakeC support for Push movetype, FIX ME by using engine physics!");
                        break;
                case MOVETYPE_NONE:
                        break;
@@ -582,7 +582,7 @@ void _Movetype_Physics_ClientFrame(entity this, float movedt)
        {
                case MOVETYPE_PUSH:
                case MOVETYPE_FAKEPUSH:
-                       LOG_DEBUGF("Physics: Lacking QuakeC support for Push movetype, FIX ME by using engine physics!");
+                       LOG_DEBUG("Physics: Lacking QuakeC support for Push movetype, FIX ME by using engine physics!");
                        break;
                case MOVETYPE_NONE:
                        break;
index 9b721a9ba42e96add17111001747949bc89763f0..279210fb1808040aae9479d827fc43e5a3135ce4 100644 (file)
@@ -212,7 +212,7 @@ void IL_INIT(IntrusiveList this)
                        return;
                }
        }
-       LOG_WARNF("IntrusiveList overflow");
+       LOG_WARN("IntrusiveList overflow");
 }
 
 ERASEABLE
index a06ac8e23100f7ffbc98312edba482164aec1c77..93deaff332aae873c8bfaa2a1e3d741a9b484a4c 100644 (file)
@@ -88,7 +88,7 @@ void GameCommand(string theCommand)
                                        if (!startsWith(s, filter)) continue;
                                        s = substring(s, strlen(filter), strlen(s) - strlen(filter));
                                }
-                               LOG_INFOF(" %s", s);
+                               LOG_INFO(" ", s);
                        });
                }
                else if (argc == 2 && !isdemo())     // don't allow this command in demos
index 1ef4c8c52f429a920ec3f072c5634b804e6bfba3..9de3779870e7c732a9193357cdaba18ecd6af1b8 100644 (file)
@@ -31,7 +31,7 @@ void waypoint_unreachable(entity pl)
        entity e2 = navigation_findnearestwaypoint(pl, false);
        if(!e2)
        {
-               LOG_INFOF("Can't find any waypoint nearby\n");
+               LOG_INFO("Can't find any waypoint nearby\n");
                return;
        }
 
index fd0375cb35fb02363cbb0698825a494c31aaed36..6121867e20fd32f1e05504882ba488cbf357e91d 100644 (file)
@@ -437,7 +437,7 @@ void CommonCommand_editmob(int request, entity caller, int argc)
                                case "butcher":
                                {
                                        if (caller) { print_to(caller, "This command is not available to players"); return; }
-                                       if (MUTATOR_CALLHOOK(AllowMobButcher)) { LOG_INFOF("%s", M_ARGV(0, string)); return; }
+                                       if (MUTATOR_CALLHOOK(AllowMobButcher)) { LOG_INFO(M_ARGV(0, string)); return; }
 
                                        int tmp_remcount = 0;
 
index 1a77e4f413d20418851fea9faa53752dedf7d6d0..e8fc1b13f1bbd5b5e897060ebd402ae5eec457da 100644 (file)
@@ -794,8 +794,8 @@ void GameCommand_gettaginfo(int request, int argc)
                                {
                                        v = gettaginfo(tmp_entity, i);
                                        LOG_INFOF(
-                                           "model %s frame %s tag %s index %s parent %s",
-                                           tmp_entity.model, ftos(tmp_entity.frame), gettaginfo_name, ftos(i), ftos(gettaginfo_parent)
+                                               "model %s frame %s tag %s index %s parent %s",
+                                               tmp_entity.model, ftos(tmp_entity.frame), gettaginfo_name, ftos(i), ftos(gettaginfo_parent)
                                        );
                                        LOG_INFOF(" vector = %s %s %s", ftos(v.x), ftos(v.y), ftos(v.z));
                                        LOG_INFOF(" offset = %s %s %s", ftos(gettaginfo_offset.x), ftos(gettaginfo_offset.y), ftos(gettaginfo_offset.z));
index cf4128ddd2f675b998d0ba76116518237be6a9c2..9ef72ae832352149d3dce0b2dc11253774218bbf 100644 (file)
@@ -640,7 +640,7 @@ spawnfunc(worldspawn)
 {
        server_is_dedicated = boolean(stof(cvar_defstring("is_dedicated")));
 
-    bool wantrestart = false;
+       bool wantrestart = false;
        {
                if (!server_is_dedicated)
                {
@@ -695,7 +695,7 @@ spawnfunc(worldspawn)
                }
                if (wantrestart)
                {
-                       LOG_INFOF("Restart requested");
+                       LOG_INFO("Restart requested");
                        changelevel(mapname);
                        // let initialization continue, shutdown depends on it
                }
@@ -774,7 +774,7 @@ spawnfunc(worldspawn)
        readlevelcvars();
        GrappleHookInit();
 
-    GameRules_limit_fallbacks();
+       GameRules_limit_fallbacks();
 
        if(warmup_limit == 0)
                warmup_limit = (autocvar_timelimit > 0) ? autocvar_timelimit * 60 : autocvar_timelimit;