[vlc-commits] [Git][videolan/vlc][master] adaptive: fix debug logging formats

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu Nov 23 09:53:21 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
b5ac9c69 by Steve Lhomme at 2023-11-23T09:27:01+00:00
adaptive: fix debug logging formats

- - - - -


2 changed files:

- modules/demux/adaptive/http/HTTPConnectionManager.cpp
- modules/demux/adaptive/logic/PredictiveAdaptationLogic.cpp


Changes:

=====================================
modules/demux/adaptive/http/HTTPConnectionManager.cpp
=====================================
@@ -56,7 +56,7 @@ void AbstractConnectionManager::updateDownloadRate(const adaptive::ID &sourceid,
     {
         BwDebug(msg_Dbg(p_object,
                 "%" PRId64 "Kbps downloaded %zuKBytes in %" PRId64 "ms latency %" PRId64 "ms [%s]",
-                1000 * size * 8 / (time ? time : 1), size / 1024, MS_FROM_VLC_TICK(time),
+                INT64_C(1000) * size * 8 / (time ? time : 1), size / 1024, MS_FROM_VLC_TICK(time),
                 latency / 1000, sourceid.str().c_str()));
         rateObserver->updateDownloadRate(sourceid, size, time, latency);
     }


=====================================
modules/demux/adaptive/logic/PredictiveAdaptationLogic.cpp
=====================================
@@ -139,7 +139,7 @@ BaseRepresentation *PredictiveAdaptationLogic::getNextRepresentation(BaseAdaptat
         } );
 
         BwDebug( if( rep != prevRep )
-                    msg_Info(p_obj, "Stream %s new bandwidth usage %zu KiB/s",
+                    msg_Info(p_obj, "Stream %s new bandwidth usage %" PRId64 " KiB/s",
                          adaptSet->getID().str().c_str(), rep->getBandwidth() / 8000); );
 
         stats.segments_count++;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b5ac9c690478cbd1216ac42d6137709e53beedbd

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b5ac9c690478cbd1216ac42d6137709e53beedbd
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list