Bug 805279: make sure we pass values for formatted log messages r=derf
authorRandell Jesup <rjesup@jesup.org>
Tue, 30 Oct 2012 15:31:09 -0400
changeset 111921 8e03750d5434c1f60cbb918b6f8527e3d36665e6
parent 111920 67cb43bb8865ecbcb79c2ea04a0494fd223cc69d
child 111922 8147196deeb8551cfb139ffd9477c1c65538960c
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersderf
bugs805279
milestone19.0a1
Bug 805279: make sure we pass values for formatted log messages r=derf
media/webrtc/trunk/src/modules/video_capture/main/source/Mac/QTKit/video_capture_qtkit.mm
--- a/media/webrtc/trunk/src/modules/video_capture/main/source/Mac/QTKit/video_capture_qtkit.mm
+++ b/media/webrtc/trunk/src/modules/video_capture/main/source/Mac/QTKit/video_capture_qtkit.mm
@@ -149,17 +149,18 @@ WebRtc_Word32 VideoCaptureMacQTKit::Init
     // set it as the current.
     if(-1 == [[_captureDevice
                setCaptureDeviceById:(char*)deviceUniqueIdUTF8]intValue])
     {
         strcpy((char*)_deviceUniqueId, (char*)deviceUniqueIdUTF8);
         WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, _id,
                      "Failed to set capture device %s (unique ID %s) even "
                      "though it was a valid return from "
-                     "VideoCaptureMacQTKitInfo");
+                     "VideoCaptureMacQTKitInfo",
+	             deviceNameUTF8, iDeviceUniqueIdUTF8);
         return -1;
     }
 
     WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideoCapture, _id,
                  "successfully Init VideoCaptureMacQTKit" );
     return 0;
 }