diff options
| author | 2018-04-24 10:28:49 -0400 | |
|---|---|---|
| committer | 2018-04-24 12:00:56 -0400 | |
| commit | 9cd7485cd738cd2936dc31a34fda76860ff9d190 (patch) | |
| tree | 4e2b1dfbb88a788d74b2da1de79e2f2539df2089 /src | |
| parent | friend: Move logging macros over to new fmt-compatible ones (diff) | |
| download | yuzu-9cd7485cd738cd2936dc31a34fda76860ff9d190.tar.gz yuzu-9cd7485cd738cd2936dc31a34fda76860ff9d190.tar.xz yuzu-9cd7485cd738cd2936dc31a34fda76860ff9d190.zip | |
hid: Move logging macros over to new fmt-compatible ones
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index aad5e688b..736180b63 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -53,7 +53,7 @@ private: | |||
| 53 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 53 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| 54 | rb.Push(RESULT_SUCCESS); | 54 | rb.Push(RESULT_SUCCESS); |
| 55 | rb.PushCopyObjects(shared_mem); | 55 | rb.PushCopyObjects(shared_mem); |
| 56 | LOG_DEBUG(Service_HID, "called"); | 56 | NGLOG_DEBUG(Service_HID, "called"); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void LoadInputDevices() { | 59 | void LoadInputDevices() { |
| @@ -184,7 +184,7 @@ private: | |||
| 184 | void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) { | 184 | void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) { |
| 185 | IPC::ResponseBuilder rb{ctx, 2}; | 185 | IPC::ResponseBuilder rb{ctx, 2}; |
| 186 | rb.Push(RESULT_SUCCESS); | 186 | rb.Push(RESULT_SUCCESS); |
| 187 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 187 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 188 | } | 188 | } |
| 189 | }; | 189 | }; |
| 190 | 190 | ||
| @@ -286,144 +286,144 @@ private: | |||
| 286 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 286 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 287 | rb.Push(RESULT_SUCCESS); | 287 | rb.Push(RESULT_SUCCESS); |
| 288 | rb.PushIpcInterface<IAppletResource>(applet_resource); | 288 | rb.PushIpcInterface<IAppletResource>(applet_resource); |
| 289 | LOG_DEBUG(Service_HID, "called"); | 289 | NGLOG_DEBUG(Service_HID, "called"); |
| 290 | } | 290 | } |
| 291 | 291 | ||
| 292 | void ActivateDebugPad(Kernel::HLERequestContext& ctx) { | 292 | void ActivateDebugPad(Kernel::HLERequestContext& ctx) { |
| 293 | IPC::ResponseBuilder rb{ctx, 2}; | 293 | IPC::ResponseBuilder rb{ctx, 2}; |
| 294 | rb.Push(RESULT_SUCCESS); | 294 | rb.Push(RESULT_SUCCESS); |
| 295 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 295 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 296 | } | 296 | } |
| 297 | 297 | ||
| 298 | void ActivateTouchScreen(Kernel::HLERequestContext& ctx) { | 298 | void ActivateTouchScreen(Kernel::HLERequestContext& ctx) { |
| 299 | IPC::ResponseBuilder rb{ctx, 2}; | 299 | IPC::ResponseBuilder rb{ctx, 2}; |
| 300 | rb.Push(RESULT_SUCCESS); | 300 | rb.Push(RESULT_SUCCESS); |
| 301 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 301 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 302 | } | 302 | } |
| 303 | 303 | ||
| 304 | void ActivateMouse(Kernel::HLERequestContext& ctx) { | 304 | void ActivateMouse(Kernel::HLERequestContext& ctx) { |
| 305 | IPC::ResponseBuilder rb{ctx, 2}; | 305 | IPC::ResponseBuilder rb{ctx, 2}; |
| 306 | rb.Push(RESULT_SUCCESS); | 306 | rb.Push(RESULT_SUCCESS); |
| 307 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 307 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 308 | } | 308 | } |
| 309 | 309 | ||
| 310 | void ActivateKeyboard(Kernel::HLERequestContext& ctx) { | 310 | void ActivateKeyboard(Kernel::HLERequestContext& ctx) { |
| 311 | IPC::ResponseBuilder rb{ctx, 2}; | 311 | IPC::ResponseBuilder rb{ctx, 2}; |
| 312 | rb.Push(RESULT_SUCCESS); | 312 | rb.Push(RESULT_SUCCESS); |
| 313 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 313 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 314 | } | 314 | } |
| 315 | 315 | ||
| 316 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx) { | 316 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx) { |
| 317 | IPC::ResponseBuilder rb{ctx, 2}; | 317 | IPC::ResponseBuilder rb{ctx, 2}; |
| 318 | rb.Push(RESULT_SUCCESS); | 318 | rb.Push(RESULT_SUCCESS); |
| 319 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 319 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 320 | } | 320 | } |
| 321 | 321 | ||
| 322 | void SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) { | 322 | void SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) { |
| 323 | IPC::ResponseBuilder rb{ctx, 2}; | 323 | IPC::ResponseBuilder rb{ctx, 2}; |
| 324 | rb.Push(RESULT_SUCCESS); | 324 | rb.Push(RESULT_SUCCESS); |
| 325 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 325 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | void SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) { | 328 | void SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) { |
| 329 | IPC::ResponseBuilder rb{ctx, 2}; | 329 | IPC::ResponseBuilder rb{ctx, 2}; |
| 330 | rb.Push(RESULT_SUCCESS); | 330 | rb.Push(RESULT_SUCCESS); |
| 331 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 331 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | void GetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) { | 334 | void GetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) { |
| 335 | IPC::ResponseBuilder rb{ctx, 3}; | 335 | IPC::ResponseBuilder rb{ctx, 3}; |
| 336 | rb.Push(RESULT_SUCCESS); | 336 | rb.Push(RESULT_SUCCESS); |
| 337 | rb.Push<u32>(0); | 337 | rb.Push<u32>(0); |
| 338 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 338 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 339 | } | 339 | } |
| 340 | 340 | ||
| 341 | void SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) { | 341 | void SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) { |
| 342 | IPC::ResponseBuilder rb{ctx, 2}; | 342 | IPC::ResponseBuilder rb{ctx, 2}; |
| 343 | rb.Push(RESULT_SUCCESS); | 343 | rb.Push(RESULT_SUCCESS); |
| 344 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 344 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 345 | } | 345 | } |
| 346 | 346 | ||
| 347 | void ActivateNpad(Kernel::HLERequestContext& ctx) { | 347 | void ActivateNpad(Kernel::HLERequestContext& ctx) { |
| 348 | IPC::ResponseBuilder rb{ctx, 2}; | 348 | IPC::ResponseBuilder rb{ctx, 2}; |
| 349 | rb.Push(RESULT_SUCCESS); | 349 | rb.Push(RESULT_SUCCESS); |
| 350 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 350 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 351 | } | 351 | } |
| 352 | 352 | ||
| 353 | void AcquireNpadStyleSetUpdateEventHandle(Kernel::HLERequestContext& ctx) { | 353 | void AcquireNpadStyleSetUpdateEventHandle(Kernel::HLERequestContext& ctx) { |
| 354 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 354 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| 355 | rb.Push(RESULT_SUCCESS); | 355 | rb.Push(RESULT_SUCCESS); |
| 356 | rb.PushCopyObjects(event); | 356 | rb.PushCopyObjects(event); |
| 357 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 357 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 358 | } | 358 | } |
| 359 | 359 | ||
| 360 | void GetPlayerLedPattern(Kernel::HLERequestContext& ctx) { | 360 | void GetPlayerLedPattern(Kernel::HLERequestContext& ctx) { |
| 361 | IPC::ResponseBuilder rb{ctx, 2}; | 361 | IPC::ResponseBuilder rb{ctx, 2}; |
| 362 | rb.Push(RESULT_SUCCESS); | 362 | rb.Push(RESULT_SUCCESS); |
| 363 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 363 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 364 | } | 364 | } |
| 365 | 365 | ||
| 366 | void SetNpadJoyHoldType(Kernel::HLERequestContext& ctx) { | 366 | void SetNpadJoyHoldType(Kernel::HLERequestContext& ctx) { |
| 367 | IPC::ResponseBuilder rb{ctx, 2}; | 367 | IPC::ResponseBuilder rb{ctx, 2}; |
| 368 | rb.Push(RESULT_SUCCESS); | 368 | rb.Push(RESULT_SUCCESS); |
| 369 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 369 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 370 | } | 370 | } |
| 371 | 371 | ||
| 372 | void GetNpadJoyHoldType(Kernel::HLERequestContext& ctx) { | 372 | void GetNpadJoyHoldType(Kernel::HLERequestContext& ctx) { |
| 373 | IPC::ResponseBuilder rb{ctx, 3}; | 373 | IPC::ResponseBuilder rb{ctx, 3}; |
| 374 | rb.Push(RESULT_SUCCESS); | 374 | rb.Push(RESULT_SUCCESS); |
| 375 | rb.Push(joy_hold_type); | 375 | rb.Push(joy_hold_type); |
| 376 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 376 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 377 | } | 377 | } |
| 378 | 378 | ||
| 379 | void SetNpadJoyAssignmentModeSingleByDefault(Kernel::HLERequestContext& ctx) { | 379 | void SetNpadJoyAssignmentModeSingleByDefault(Kernel::HLERequestContext& ctx) { |
| 380 | IPC::ResponseBuilder rb{ctx, 2}; | 380 | IPC::ResponseBuilder rb{ctx, 2}; |
| 381 | rb.Push(RESULT_SUCCESS); | 381 | rb.Push(RESULT_SUCCESS); |
| 382 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 382 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 383 | } | 383 | } |
| 384 | 384 | ||
| 385 | void SendVibrationValue(Kernel::HLERequestContext& ctx) { | 385 | void SendVibrationValue(Kernel::HLERequestContext& ctx) { |
| 386 | IPC::ResponseBuilder rb{ctx, 2}; | 386 | IPC::ResponseBuilder rb{ctx, 2}; |
| 387 | rb.Push(RESULT_SUCCESS); | 387 | rb.Push(RESULT_SUCCESS); |
| 388 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 388 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 389 | } | 389 | } |
| 390 | 390 | ||
| 391 | void GetActualVibrationValue(Kernel::HLERequestContext& ctx) { | 391 | void GetActualVibrationValue(Kernel::HLERequestContext& ctx) { |
| 392 | IPC::ResponseBuilder rb{ctx, 2}; | 392 | IPC::ResponseBuilder rb{ctx, 2}; |
| 393 | rb.Push(RESULT_SUCCESS); | 393 | rb.Push(RESULT_SUCCESS); |
| 394 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 394 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 395 | } | 395 | } |
| 396 | 396 | ||
| 397 | void SetNpadJoyAssignmentModeDual(Kernel::HLERequestContext& ctx) { | 397 | void SetNpadJoyAssignmentModeDual(Kernel::HLERequestContext& ctx) { |
| 398 | IPC::ResponseBuilder rb{ctx, 2}; | 398 | IPC::ResponseBuilder rb{ctx, 2}; |
| 399 | rb.Push(RESULT_SUCCESS); | 399 | rb.Push(RESULT_SUCCESS); |
| 400 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 400 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 401 | } | 401 | } |
| 402 | 402 | ||
| 403 | void SetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx) { | 403 | void SetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx) { |
| 404 | IPC::ResponseBuilder rb{ctx, 2}; | 404 | IPC::ResponseBuilder rb{ctx, 2}; |
| 405 | rb.Push(RESULT_SUCCESS); | 405 | rb.Push(RESULT_SUCCESS); |
| 406 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 406 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | void GetVibrationDeviceInfo(Kernel::HLERequestContext& ctx) { | 409 | void GetVibrationDeviceInfo(Kernel::HLERequestContext& ctx) { |
| 410 | IPC::ResponseBuilder rb{ctx, 4}; | 410 | IPC::ResponseBuilder rb{ctx, 4}; |
| 411 | rb.Push(RESULT_SUCCESS); | 411 | rb.Push(RESULT_SUCCESS); |
| 412 | rb.Push<u64>(0); | 412 | rb.Push<u64>(0); |
| 413 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 413 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 414 | } | 414 | } |
| 415 | 415 | ||
| 416 | void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) { | 416 | void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) { |
| 417 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 417 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 418 | rb.Push(RESULT_SUCCESS); | 418 | rb.Push(RESULT_SUCCESS); |
| 419 | rb.PushIpcInterface<IActiveVibrationDeviceList>(); | 419 | rb.PushIpcInterface<IActiveVibrationDeviceList>(); |
| 420 | LOG_DEBUG(Service_HID, "called"); | 420 | NGLOG_DEBUG(Service_HID, "called"); |
| 421 | } | 421 | } |
| 422 | 422 | ||
| 423 | void SendVibrationValues(Kernel::HLERequestContext& ctx) { | 423 | void SendVibrationValues(Kernel::HLERequestContext& ctx) { |
| 424 | IPC::ResponseBuilder rb{ctx, 2}; | 424 | IPC::ResponseBuilder rb{ctx, 2}; |
| 425 | rb.Push(RESULT_SUCCESS); | 425 | rb.Push(RESULT_SUCCESS); |
| 426 | LOG_WARNING(Service_HID, "(STUBBED) called"); | 426 | NGLOG_WARNING(Service_HID, "(STUBBED) called"); |
| 427 | } | 427 | } |
| 428 | }; | 428 | }; |
| 429 | 429 | ||