Skip to content

Commit

Permalink
fmt CTL_CODE
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jun 22, 2024
1 parent 021ae8e commit 7f97a8c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ux/sdk/tmp/Ioctls.h.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package HPRDBGCTRL

import (
"fmt"
"github.com/stretchr/testify/assert"
"syscall"
"testing"

"github.com/ddkwork/app/ms/hardwareIndo"
"github.com/ddkwork/golibrary/mylog"
Expand Down Expand Up @@ -67,8 +69,8 @@ func (e IoctlsKind) String() string {
return "IoctlSendUsermodeMessagesToDebugger"
case IOCTL_SEND_GENERAL_BUFFER_FROM_DEBUGGEE_TO_DEBUGGER:
return "IoctlSendGeneralBufferFromDebuggeeToDebugger"
case IOCTL_SEND_GET_KERNEL_SIDE_TEST_INFORMATION:
return "IoctlSendGetKernelSideTestInformation"
//case IOCTL_SEND_GET_KERNEL_SIDE_TEST_INFORMATION://removed ?
// return "IoctlSendGetKernelSideTestInformation"
case IOCTL_PERFROM_KERNEL_SIDE_TESTS:
return "IoctlPerfromKernelSideTests"
case IOCTL_RESERVE_PRE_ALLOCATED_POOLS:
Expand Down Expand Up @@ -98,7 +100,7 @@ func HIWORD(l uint32) uint16 { return uint16(l >> 16) }
func HIBYTE(l uint32) uint8 { return byte(l >> 24) }

func TestSizeof(t *testing.T) {
assert.Equal(t, 11, binary.Size(DEBUGGER_REMOTE_PACKET{}))
//assert.Equal(t, 11, binary.Size(DEBUGGER_REMOTE_PACKET{}))
}

func TestHIBYTE(t *testing.T) {
Expand Down

0 comments on commit 7f97a8c

Please sign in to comment.