Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TestToolChainDemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
dsq
TestToolChainDemo
Commits
b62889ae
Commit
b62889ae
authored
Mar 11, 2026
by
dsq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oh_log_printMsg->oh_log_print
parent
99cfb477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
TestLog.ohosArm64.kt
...hosArm64Main/kotlin/com.dong.demo013/TestLog.ohosArm64.kt
+2
-1
No files found.
composeApp/src/ohosArm64Main/kotlin/com.dong.demo013/TestLog.ohosArm64.kt
View file @
b62889ae
...
@@ -5,6 +5,7 @@ import kotlinx.coroutines.DelicateCoroutinesApi
...
@@ -5,6 +5,7 @@ import kotlinx.coroutines.DelicateCoroutinesApi
import
kotlinx.coroutines.GlobalScope
import
kotlinx.coroutines.GlobalScope
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.launch
import
platform.PerformanceAnalysisKit.HiLog.OH_LOG_PrintMsg
import
platform.PerformanceAnalysisKit.HiLog.OH_LOG_PrintMsg
import
platform.ohos.OH_LOG_Print
@OptIn
(
DelicateCoroutinesApi
::
class
)
@OptIn
(
DelicateCoroutinesApi
::
class
)
actual
fun
startLog
(
actual
fun
startLog
(
...
@@ -83,7 +84,7 @@ private fun getTimeMillis(): Long {
...
@@ -83,7 +84,7 @@ private fun getTimeMillis(): Long {
@CName
(
"hiLogPrintMsg"
)
@CName
(
"hiLogPrintMsg"
)
fun
hiLogPrintMsg
(
type
:
UInt
,
level
:
UInt
,
domain
:
UInt
,
tag
:
String
,
message
:
String
):
Int
{
fun
hiLogPrintMsg
(
type
:
UInt
,
level
:
UInt
,
domain
:
UInt
,
tag
:
String
,
message
:
String
):
Int
{
return
try
{
return
try
{
OH_LOG_Print
Msg
(
type
,
level
,
domain
,
tag
,
message
)
OH_LOG_Print
(
type
,
level
,
domain
,
tag
,
message
)
}
catch
(
_
:
Throwable
)
{
}
catch
(
_
:
Throwable
)
{
-
1
-
1
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment