Skip to content

Commit 6e03517

Browse files
committed
[WPE] Fix build after 256940@main
Unreviewed build fix. Use proper format specifier for logging. * Source/WebCore/platform/gamepad/libwpe/GamepadProviderLibWPE.cpp: (WebCore::GamepadProviderLibWPE::gamepadConnected): (WebCore::GamepadProviderLibWPE::gamepadDisconnected): Canonical link: https://commits.webkit.org/256988@main
1 parent fde0f31 commit 6e03517

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Source/WebCore/platform/gamepad/libwpe/GamepadProviderLibWPE.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "GamepadLibWPE.h"
3333
#include "GamepadProviderClient.h"
3434
#include "Logging.h"
35+
#include <inttypes.h>
3536
#include <wpe/wpe.h>
3637
#include <wtf/NeverDestroyed.h>
3738

@@ -122,7 +123,7 @@ void GamepadProviderLibWPE::gamepadConnected(uintptr_t id)
122123
ASSERT(!m_gamepadMap.get(id));
123124
ASSERT(m_provider);
124125

125-
LOG(Gamepad, "GamepadProviderLibWPE device %u added", id);
126+
LOG(Gamepad, "GamepadProviderLibWPE device %" PRIuPTR " added", id);
126127

127128
unsigned index = indexForNewlyConnectedDevice();
128129
auto gamepad = makeUnique<GamepadLibWPE>(m_provider.get(), id, index);
@@ -150,7 +151,7 @@ void GamepadProviderLibWPE::gamepadConnected(uintptr_t id)
150151

151152
void GamepadProviderLibWPE::gamepadDisconnected(uintptr_t id)
152153
{
153-
LOG(Gamepad, "GamepadProviderLibWPE device %u removed", id);
154+
LOG(Gamepad, "GamepadProviderLibWPE device %" PRIuPTR " removed", id);
154155

155156
auto removedGamepad = removeGamepadForId(id);
156157
ASSERT(removedGamepad);

0 commit comments

Comments
 (0)