]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
edsp: if logging is requested, do it for internal, too
[apt.git] / apt-pkg / acquire.cc
index ff41246b872cb513b1255216d52b1414c88735f7..29362fb407c96ba21d5bce7e1791d4a624ec5191 100644 (file)
@@ -1258,13 +1258,9 @@ bool pkgAcquireStatus::Pulse(pkgAcquire *Owner)
         snprintf(msg,sizeof(msg), _("Retrieving file %li of %li"), i, TotalItems);
 
       // build the status str
-      status << "dlstatus:" << i
-             << ":"  << std::setprecision(3) << Percent
-             << ":" << msg
-             << endl;
-
-      std::string const dlstatus = status.str();
-      FileFd::Write(fd, dlstatus.c_str(), dlstatus.size());
+      std::string dlstatus;
+      strprintf(dlstatus, "dlstatus:%ld:%.4f:%s\n", i, Percent, msg);
+      FileFd::Write(fd, dlstatus.data(), dlstatus.size());
    }
 
    return true;