Bug 171875 - Avoid -Wformat warnings in RenderLayerCompositor.cpp and RenderLayerBacking.cpp
Summary: Avoid -Wformat warnings in RenderLayerCompositor.cpp and RenderLayerBacking.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Michael Catanzaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-09 12:17 PDT by Michael Catanzaro
Modified: 2017-05-09 13:24 PDT (History)
3 users (show)

See Also:


Attachments
Patch (4.36 KB, patch)
2017-05-09 12:26 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2017-05-09 12:17:22 PDT
Avoid -Wformat warnings in RenderLayerCompositor.cpp and RenderLayerBacking.cpp, caused by r216103:

[2383/4357] Building CXX object Source.../rendering/RenderLayerCompositor.cpp.o
../../Source/WebCore/rendering/RenderLayerCompositor.cpp: In member function ‘void WebCore::RenderLayerCompositor::logLayerInfo(const WebCore::RenderLayer&, int)’:
../../Source/WebCore/rendering/RenderLayerCompositor.cpp:815:53: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘WebCore::GraphicsLayer::PlatformLayerID {aka long unsigned int}’ [-Wformat=]
         backing->backingStoreMemoryEstimate() / 1024));
                                                     ^
In file included from ../../Source/WTF/wtf/StdLibExtras.h:34:0,
                 from ../../Source/WTF/wtf/FastMalloc.h:26,
                 from ../../Source/WebCore/config.h:67,
                 from ../../Source/WebCore/rendering/RenderLayerCompositor.cpp:26:
../../Source/WebCore/rendering/RenderLayerCompositor.cpp: In member function ‘void WebCore::RenderLayerCompositor::updateScrollCoordinatedLayer(WebCore::RenderLayer&, WebCore::LayerScrollCoordinationRoles)’:
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘WebCore::ScrollingNodeID {aka long unsigned int}’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
                                                                    ^
../../Source/WebCore/rendering/RenderLayerCompositor.cpp:3907:9: note: in expansion of macro ‘LOG’
         LOG(Compositing, "Registering ViewportConstrained scrolling node %llu (layer %llu) as child of %llu", nodeID, backing->graphicsLayer()->primaryLayerID(), parentNodeID);
         ^
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘WebCore::GraphicsLayer::PlatformLayerID {aka long unsigned int}’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
                                                                    ^
../../Source/WebCore/rendering/RenderLayerCompositor.cpp:3907:9: note: in expansion of macro ‘LOG’
         LOG(Compositing, "Registering ViewportConstrained scrolling node %llu (layer %llu) as child of %llu", nodeID, backing->graphicsLayer()->primaryLayerID(), parentNodeID);
         ^
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘WebCore::ScrollingNodeID {aka long unsigned int}’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
                                                                    ^
../../Source/WebCore/rendering/RenderLayerCompositor.cpp:3907:9: note: in expansion of macro ‘LOG’
         LOG(Compositing, "Registering ViewportConstrained scrolling node %llu (layer %llu) as child of %llu", nodeID, backing->graphicsLayer()->primaryLayerID(), parentNodeID);
         ^
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘WebCore::ScrollingNodeID {aka long unsigned int}’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
                                                                    ^
../../Source/WebCore/rendering/RenderLayerCompositor.cpp:3953:13: note: in expansion of macro ‘LOG’
             LOG(Compositing, "Registering Scrolling scrolling node %llu (layer %llu) as child of %llu", nodeID, backing->graphicsLayer()->primaryLayerID(), parentNodeID);
             ^
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘WebCore::GraphicsLayer::PlatformLayerID {aka long unsigned int}’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
                                                                    ^
../../Source/WebCore/rendering/RenderLayerCompositor.cpp:3953:13: note: in expansion of macro ‘LOG’
             LOG(Compositing, "Registering Scrolling scrolling node %llu (layer %llu) as child of %llu", nodeID, backing->graphicsLayer()->primaryLayerID(), parentNodeID);
             ^
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘WebCore::ScrollingNodeID {aka long unsigned int}’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
                                                                    ^
../../Source/WebCore/rendering/RenderLayerCompositor.cpp:3953:13: note: in expansion of macro ‘LOG’
             LOG(Compositing, "Registering Scrolling scrolling node %llu (layer %llu) as child of %llu", nodeID, backing->graphicsLayer()->primaryLayerID(), parentNodeID);
             ^
[2386/4357] Building CXX object Source...dir/rendering/RenderLayerBacking.cpp.o
In file included from ../../Source/WTF/wtf/StdLibExtras.h:34:0,
                 from ../../Source/WTF/wtf/FastMalloc.h:26,
                 from ../../Source/WebCore/config.h:67,
                 from ../../Source/WebCore/rendering/RenderLayerBacking.cpp:26:
../../Source/WebCore/rendering/RenderLayerBacking.cpp: In member function ‘void WebCore::RenderLayerBacking::detachFromScrollingCoordinator(WebCore::LayerScrollCoordinationRoles)’:
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘WebCore::ScrollingNodeID {aka long unsigned int}’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
                                                                    ^
../../Source/WebCore/rendering/RenderLayerBacking.cpp:1784:9: note: in expansion of macro ‘LOG’
         LOG(Compositing, "Detaching Scrolling node %llu", m_scrollingNodeID);
         ^
../../Source/WTF/wtf/Assertions.h:407:68: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘WebCore::ScrollingNodeID {aka long unsigned int}’ [-Wformat=]
 #define LOG(channel, ...) WTFLog(&LOG_CHANNEL(channel), __VA_ARGS__)
                                                                    ^
../../Source/WebCore/rendering/RenderLayerBacking.cpp:1790:9: note: in expansion of macro ‘LOG’
         LOG(Compositing, "Detaching ViewportConstrained node %llu", m_viewportConstrainedNodeID);
         ^
Comment 1 Michael Catanzaro 2017-05-09 12:26:10 PDT
Created attachment 309522 [details]
Patch
Comment 2 WebKit Commit Bot 2017-05-09 13:24:39 PDT
Comment on attachment 309522 [details]
Patch

Clearing flags on attachment: 309522

Committed r216535: <http://trac.webkit.org/changeset/216535>
Comment 3 WebKit Commit Bot 2017-05-09 13:24:41 PDT
All reviewed patches have been landed.  Closing bug.