Bug 1313212 - Show the pointer value, not the string behind it in the debug statement. r=mchang
authorMilan Sreckovic <milan@mozilla.com>
Tue, 29 Nov 2016 17:04:59 -0500
changeset 324740 e10cae7946b2581b3737771d456f4474734c63f7
parent 324739 28e269b5ab120e15b7cf22f082befb1ed00cd5d5
child 324741 f2631b49bb7d178dde8e5f2f4b740803453fbbb4
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersmchang
bugs1313212
milestone53.0a1
Bug 1313212 - Show the pointer value, not the string behind it in the debug statement. r=mchang
gfx/2d/Factory.cpp
--- a/gfx/2d/Factory.cpp
+++ b/gfx/2d/Factory.cpp
@@ -395,17 +395,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)
 {