summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2018-04-24 10:58:52 -0400
committerGravatar Lioncash2018-04-24 12:01:31 -0400
commit88eb6127183f3334b4ab56873706f142b597d322 (patch)
treebd8a50423e45196fa7ed3695a28d05e5f26a9ac4
parenttime: Move logging macros over to new fmt-compatible ones (diff)
downloadyuzu-88eb6127183f3334b4ab56873706f142b597d322.tar.gz
yuzu-88eb6127183f3334b4ab56873706f142b597d322.tar.xz
yuzu-88eb6127183f3334b4ab56873706f142b597d322.zip
vi: Move logging macros over to new fmt-compatible ones
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/vi/vi.cpp53
1 files changed, 27 insertions, 26 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 36ae2215f..45f3568d2 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -470,7 +470,7 @@ private:
470 u32 flags = rp.Pop<u32>(); 470 u32 flags = rp.Pop<u32>();
471 auto buffer_queue = nv_flinger->GetBufferQueue(id); 471 auto buffer_queue = nv_flinger->GetBufferQueue(id);
472 472
473 LOG_DEBUG(Service_VI, "called, transaction=%x", static_cast<u32>(transaction)); 473 NGLOG_DEBUG(Service_VI, "called, transaction={:X}", static_cast<u32>(transaction));
474 474
475 if (transaction == TransactionId::Connect) { 475 if (transaction == TransactionId::Connect) {
476 IGBPConnectRequestParcel request{ctx.ReadBuffer()}; 476 IGBPConnectRequestParcel request{ctx.ReadBuffer()};
@@ -532,7 +532,7 @@ private:
532 IGBPQueryResponseParcel response{value}; 532 IGBPQueryResponseParcel response{value};
533 ctx.WriteBuffer(response.Serialize()); 533 ctx.WriteBuffer(response.Serialize());
534 } else if (transaction == TransactionId::CancelBuffer) { 534 } else if (transaction == TransactionId::CancelBuffer) {
535 LOG_WARNING(Service_VI, "(STUBBED) called, transaction=CancelBuffer"); 535 NGLOG_WARNING(Service_VI, "(STUBBED) called, transaction=CancelBuffer");
536 } else { 536 } else {
537 ASSERT_MSG(false, "Unimplemented"); 537 ASSERT_MSG(false, "Unimplemented");
538 } 538 }
@@ -547,7 +547,8 @@ private:
547 s32 addval = rp.PopRaw<s32>(); 547 s32 addval = rp.PopRaw<s32>();
548 u32 type = rp.Pop<u32>(); 548 u32 type = rp.Pop<u32>();
549 549
550 LOG_WARNING(Service_VI, "(STUBBED) called id=%u, addval=%08X, type=%08X", id, addval, type); 550 NGLOG_WARNING(Service_VI, "(STUBBED) called id={}, addval={:08X}, type={:08X}", id, addval,
551 type);
551 IPC::ResponseBuilder rb{ctx, 2}; 552 IPC::ResponseBuilder rb{ctx, 2};
552 rb.Push(RESULT_SUCCESS); 553 rb.Push(RESULT_SUCCESS);
553 } 554 }
@@ -561,7 +562,7 @@ private:
561 562
562 // TODO(Subv): Find out what this actually is. 563 // TODO(Subv): Find out what this actually is.
563 564
564 LOG_WARNING(Service_VI, "(STUBBED) called id=%u, unknown=%08X", id, unknown); 565 NGLOG_WARNING(Service_VI, "(STUBBED) called id={}, unknown={:08X}", id, unknown);
565 IPC::ResponseBuilder rb{ctx, 2, 1}; 566 IPC::ResponseBuilder rb{ctx, 2, 1};
566 rb.Push(RESULT_SUCCESS); 567 rb.Push(RESULT_SUCCESS);
567 rb.PushCopyObjects(buffer_queue->GetNativeHandle()); 568 rb.PushCopyObjects(buffer_queue->GetNativeHandle());
@@ -624,7 +625,7 @@ public:
624 625
625private: 626private:
626 void SetLayerZ(Kernel::HLERequestContext& ctx) { 627 void SetLayerZ(Kernel::HLERequestContext& ctx) {
627 LOG_WARNING(Service_VI, "(STUBBED) called"); 628 NGLOG_WARNING(Service_VI, "(STUBBED) called");
628 IPC::RequestParser rp{ctx}; 629 IPC::RequestParser rp{ctx};
629 u64 layer_id = rp.Pop<u64>(); 630 u64 layer_id = rp.Pop<u64>();
630 u64 z_value = rp.Pop<u64>(); 631 u64 z_value = rp.Pop<u64>();
@@ -639,8 +640,8 @@ private:
639 bool visibility = rp.Pop<bool>(); 640 bool visibility = rp.Pop<bool>();
640 IPC::ResponseBuilder rb = rp.MakeBuilder(2, 0, 0); 641 IPC::ResponseBuilder rb = rp.MakeBuilder(2, 0, 0);
641 rb.Push(RESULT_SUCCESS); 642 rb.Push(RESULT_SUCCESS);
642 LOG_WARNING(Service_VI, "(STUBBED) called, layer_id=0x%x, visibility=%u", layer_id, 643 NGLOG_WARNING(Service_VI, "(STUBBED) called, layer_id={:#010X}, visibility={}", layer_id,
643 visibility); 644 visibility);
644 } 645 }
645}; 646};
646 647
@@ -722,7 +723,7 @@ public:
722 723
723private: 724private:
724 void CloseDisplay(Kernel::HLERequestContext& ctx) { 725 void CloseDisplay(Kernel::HLERequestContext& ctx) {
725 LOG_WARNING(Service_VI, "(STUBBED) called"); 726 NGLOG_WARNING(Service_VI, "(STUBBED) called");
726 IPC::RequestParser rp{ctx}; 727 IPC::RequestParser rp{ctx};
727 u64 display = rp.Pop<u64>(); 728 u64 display = rp.Pop<u64>();
728 729
@@ -731,7 +732,7 @@ private:
731 } 732 }
732 733
733 void CreateManagedLayer(Kernel::HLERequestContext& ctx) { 734 void CreateManagedLayer(Kernel::HLERequestContext& ctx) {
734 LOG_WARNING(Service_VI, "(STUBBED) called"); 735 NGLOG_WARNING(Service_VI, "(STUBBED) called");
735 IPC::RequestParser rp{ctx}; 736 IPC::RequestParser rp{ctx};
736 u32 unknown = rp.Pop<u32>(); 737 u32 unknown = rp.Pop<u32>();
737 rp.Skip(1, false); 738 rp.Skip(1, false);
@@ -746,7 +747,7 @@ private:
746 } 747 }
747 748
748 void AddToLayerStack(Kernel::HLERequestContext& ctx) { 749 void AddToLayerStack(Kernel::HLERequestContext& ctx) {
749 LOG_WARNING(Service_VI, "(STUBBED) called"); 750 NGLOG_WARNING(Service_VI, "(STUBBED) called");
750 IPC::RequestParser rp{ctx}; 751 IPC::RequestParser rp{ctx};
751 u32 stack = rp.Pop<u32>(); 752 u32 stack = rp.Pop<u32>();
752 u64 layer_id = rp.Pop<u64>(); 753 u64 layer_id = rp.Pop<u64>();
@@ -761,8 +762,8 @@ private:
761 bool visibility = rp.Pop<bool>(); 762 bool visibility = rp.Pop<bool>();
762 IPC::ResponseBuilder rb = rp.MakeBuilder(2, 0, 0); 763 IPC::ResponseBuilder rb = rp.MakeBuilder(2, 0, 0);
763 rb.Push(RESULT_SUCCESS); 764 rb.Push(RESULT_SUCCESS);
764 LOG_WARNING(Service_VI, "(STUBBED) called, layer_id=0x%x, visibility=%u", layer_id, 765 NGLOG_WARNING(Service_VI, "(STUBBED) called, layer_id={:#X}, visibility={}", layer_id,
765 visibility); 766 visibility);
766 } 767 }
767 768
768 std::shared_ptr<NVFlinger::NVFlinger> nv_flinger; 769 std::shared_ptr<NVFlinger::NVFlinger> nv_flinger;
@@ -775,7 +776,7 @@ public:
775 776
776private: 777private:
777 void GetRelayService(Kernel::HLERequestContext& ctx) { 778 void GetRelayService(Kernel::HLERequestContext& ctx) {
778 LOG_WARNING(Service_VI, "(STUBBED) called"); 779 NGLOG_WARNING(Service_VI, "(STUBBED) called");
779 780
780 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 781 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
781 rb.Push(RESULT_SUCCESS); 782 rb.Push(RESULT_SUCCESS);
@@ -783,7 +784,7 @@ private:
783 } 784 }
784 785
785 void GetSystemDisplayService(Kernel::HLERequestContext& ctx) { 786 void GetSystemDisplayService(Kernel::HLERequestContext& ctx) {
786 LOG_WARNING(Service_VI, "(STUBBED) called"); 787 NGLOG_WARNING(Service_VI, "(STUBBED) called");
787 788
788 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 789 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
789 rb.Push(RESULT_SUCCESS); 790 rb.Push(RESULT_SUCCESS);
@@ -791,7 +792,7 @@ private:
791 } 792 }
792 793
793 void GetManagerDisplayService(Kernel::HLERequestContext& ctx) { 794 void GetManagerDisplayService(Kernel::HLERequestContext& ctx) {
794 LOG_WARNING(Service_VI, "(STUBBED) called"); 795 NGLOG_WARNING(Service_VI, "(STUBBED) called");
795 796
796 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 797 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
797 rb.Push(RESULT_SUCCESS); 798 rb.Push(RESULT_SUCCESS);
@@ -799,7 +800,7 @@ private:
799 } 800 }
800 801
801 void GetIndirectDisplayTransactionService(Kernel::HLERequestContext& ctx) { 802 void GetIndirectDisplayTransactionService(Kernel::HLERequestContext& ctx) {
802 LOG_WARNING(Service_VI, "(STUBBED) called"); 803 NGLOG_WARNING(Service_VI, "(STUBBED) called");
803 804
804 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 805 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
805 rb.Push(RESULT_SUCCESS); 806 rb.Push(RESULT_SUCCESS);
@@ -807,7 +808,7 @@ private:
807 } 808 }
808 809
809 void OpenDisplay(Kernel::HLERequestContext& ctx) { 810 void OpenDisplay(Kernel::HLERequestContext& ctx) {
810 LOG_WARNING(Service_VI, "(STUBBED) called"); 811 NGLOG_WARNING(Service_VI, "(STUBBED) called");
811 IPC::RequestParser rp{ctx}; 812 IPC::RequestParser rp{ctx};
812 auto name_buf = rp.PopRaw<std::array<u8, 0x40>>(); 813 auto name_buf = rp.PopRaw<std::array<u8, 0x40>>();
813 auto end = std::find(name_buf.begin(), name_buf.end(), '\0'); 814 auto end = std::find(name_buf.begin(), name_buf.end(), '\0');
@@ -822,7 +823,7 @@ private:
822 } 823 }
823 824
824 void CloseDisplay(Kernel::HLERequestContext& ctx) { 825 void CloseDisplay(Kernel::HLERequestContext& ctx) {
825 LOG_WARNING(Service_VI, "(STUBBED) called"); 826 NGLOG_WARNING(Service_VI, "(STUBBED) called");
826 IPC::RequestParser rp{ctx}; 827 IPC::RequestParser rp{ctx};
827 u64 display_id = rp.Pop<u64>(); 828 u64 display_id = rp.Pop<u64>();
828 829
@@ -831,7 +832,7 @@ private:
831 } 832 }
832 833
833 void GetDisplayResolution(Kernel::HLERequestContext& ctx) { 834 void GetDisplayResolution(Kernel::HLERequestContext& ctx) {
834 LOG_WARNING(Service_VI, "(STUBBED) called"); 835 NGLOG_WARNING(Service_VI, "(STUBBED) called");
835 IPC::RequestParser rp{ctx}; 836 IPC::RequestParser rp{ctx};
836 u64 display_id = rp.Pop<u64>(); 837 u64 display_id = rp.Pop<u64>();
837 838
@@ -848,7 +849,7 @@ private:
848 } 849 }
849 850
850 void SetLayerScalingMode(Kernel::HLERequestContext& ctx) { 851 void SetLayerScalingMode(Kernel::HLERequestContext& ctx) {
851 LOG_WARNING(Service_VI, "(STUBBED) called"); 852 NGLOG_WARNING(Service_VI, "(STUBBED) called");
852 IPC::RequestParser rp{ctx}; 853 IPC::RequestParser rp{ctx};
853 u32 scaling_mode = rp.Pop<u32>(); 854 u32 scaling_mode = rp.Pop<u32>();
854 u64 unknown = rp.Pop<u64>(); 855 u64 unknown = rp.Pop<u64>();
@@ -864,11 +865,11 @@ private:
864 IPC::ResponseBuilder rb = rp.MakeBuilder(4, 0, 0); 865 IPC::ResponseBuilder rb = rp.MakeBuilder(4, 0, 0);
865 rb.Push(RESULT_SUCCESS); 866 rb.Push(RESULT_SUCCESS);
866 rb.Push<u64>(1); 867 rb.Push<u64>(1);
867 LOG_WARNING(Service_VI, "(STUBBED) called"); 868 NGLOG_WARNING(Service_VI, "(STUBBED) called");
868 } 869 }
869 870
870 void OpenLayer(Kernel::HLERequestContext& ctx) { 871 void OpenLayer(Kernel::HLERequestContext& ctx) {
871 LOG_DEBUG(Service_VI, "called"); 872 NGLOG_DEBUG(Service_VI, "called");
872 IPC::RequestParser rp{ctx}; 873 IPC::RequestParser rp{ctx};
873 auto name_buf = rp.PopRaw<std::array<u8, 0x40>>(); 874 auto name_buf = rp.PopRaw<std::array<u8, 0x40>>();
874 auto end = std::find(name_buf.begin(), name_buf.end(), '\0'); 875 auto end = std::find(name_buf.begin(), name_buf.end(), '\0');
@@ -888,7 +889,7 @@ private:
888 } 889 }
889 890
890 void CreateStrayLayer(Kernel::HLERequestContext& ctx) { 891 void CreateStrayLayer(Kernel::HLERequestContext& ctx) {
891 LOG_DEBUG(Service_VI, "called"); 892 NGLOG_DEBUG(Service_VI, "called");
892 893
893 IPC::RequestParser rp{ctx}; 894 IPC::RequestParser rp{ctx};
894 u32 flags = rp.Pop<u32>(); 895 u32 flags = rp.Pop<u32>();
@@ -908,7 +909,7 @@ private:
908 } 909 }
909 910
910 void DestroyStrayLayer(Kernel::HLERequestContext& ctx) { 911 void DestroyStrayLayer(Kernel::HLERequestContext& ctx) {
911 LOG_WARNING(Service_VI, "(STUBBED) called"); 912 NGLOG_WARNING(Service_VI, "(STUBBED) called");
912 913
913 IPC::RequestParser rp{ctx}; 914 IPC::RequestParser rp{ctx};
914 u64 layer_id = rp.Pop<u64>(); 915 u64 layer_id = rp.Pop<u64>();
@@ -918,7 +919,7 @@ private:
918 } 919 }
919 920
920 void GetDisplayVsyncEvent(Kernel::HLERequestContext& ctx) { 921 void GetDisplayVsyncEvent(Kernel::HLERequestContext& ctx) {
921 LOG_WARNING(Service_VI, "(STUBBED) called"); 922 NGLOG_WARNING(Service_VI, "(STUBBED) called");
922 IPC::RequestParser rp{ctx}; 923 IPC::RequestParser rp{ctx};
923 u64 display_id = rp.Pop<u64>(); 924 u64 display_id = rp.Pop<u64>();
924 925
@@ -967,7 +968,7 @@ Module::Interface::Interface(std::shared_ptr<Module> module, const char* name,
967 : ServiceFramework(name), module(std::move(module)), nv_flinger(std::move(nv_flinger)) {} 968 : ServiceFramework(name), module(std::move(module)), nv_flinger(std::move(nv_flinger)) {}
968 969
969void Module::Interface::GetDisplayService(Kernel::HLERequestContext& ctx) { 970void Module::Interface::GetDisplayService(Kernel::HLERequestContext& ctx) {
970 LOG_WARNING(Service_VI, "(STUBBED) called"); 971 NGLOG_WARNING(Service_VI, "(STUBBED) called");
971 972
972 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 973 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
973 rb.Push(RESULT_SUCCESS); 974 rb.Push(RESULT_SUCCESS);