]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud_labl.cxx
Merge branch 'topics/mainloop' into next
[flightgear.git] / src / Cockpit / hud_labl.cxx
index d19fed05696da5f33f462dcbf281898f00577699..8927b113e60e6f3f60b7285e455565b0de73c308 100644 (file)
@@ -33,7 +33,7 @@ instr_label::instr_label(const SGPropertyNode *node) :
     lon_node(fgGetNode("/position/longitude-string", true)),
     lat_node(fgGetNode("/position/latitude-string", true))
 {
-    SG_LOG(SG_INPUT, SG_INFO, "Done reading instr_label instrument "
+    SG_LOG(SG_INPUT, SG_BULK, "Done reading instr_label instrument "
             << node->getStringValue("name", "[unnamed]"));
 
     set_data_source(get_func(node->getStringValue("data_source")));
@@ -114,7 +114,7 @@ void instr_label::draw(void)
         }
 
     } else {
-        snprintf(label_buffer, sizeof( label_buffer) -1, format_buffer.c_str());
+        snprintf(label_buffer, sizeof( label_buffer)-1, format_buffer.c_str(), 0);
     }
 
     lenstr = getStringWidth(label_buffer);