Bug 1313212 - Show the pointer value, not the string behind it in the debug statement. r=mchang, a=ritu
authorMilan Sreckovic <milan@mozilla.com>
Tue, 29 Nov 2016 17:04:59 -0500
changeset 352781 f97d858f6835a36c22aeb846e394bd5044f5494a
parent 352780 3cde0a94e21bac52f2037f1f93cab1202e8e9f7e
child 352782 6ae1e6a5259fd2159192811e65ec9157a0247474
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmchang, ritu
bugs1313212
milestone52.0a2
Bug 1313212 - Show the pointer value, not the string behind it in the debug statement. r=mchang, a=ritu
gfx/2d/Factory.cpp
--- a/gfx/2d/Factory.cpp
+++ b/gfx/2d/Factory.cpp
@@ -404,17 +404,17 @@ Factory::CreateDrawTargetForData(Backend
     return nullptr;
   }
 
   if (mRecorder && retVal) {
     return MakeAndAddRef<DrawTargetRecording>(mRecorder, retVal, true);
   }
 
   if (!retVal) {
-    gfxCriticalNote << "Failed to create DrawTarget, Type: " << int(aBackend) << " Size: " << aSize << ", Data: " << hexa(aData) << ", Stride: " << aStride;
+    gfxCriticalNote << "Failed to create DrawTarget, Type: " << int(aBackend) << " Size: " << aSize << ", Data: " << hexa((void *)aData) << ", Stride: " << aStride;
   }
 
   return retVal.forget();
 }
 
 already_AddRefed<DrawTarget>
 Factory::CreateTiledDrawTarget(const TileSet& aTileSet)
 {