Skip to content

Commit 407bf99

Browse files
committed
debugging
1 parent 614c5ca commit 407bf99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime_musl_workaround.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function replace_musl_shortname(lib_handle::Ptr{Cvoid})
131131

132132
# If the shortname is not NULL, break out.
133133
if dso.shortname != C_NULL
134-
@debug("shortname != NULL!", ptr=shortname_ptr, value=unsafe_string(shortname_ptr))
134+
@debug("shortname != NULL!", ptr=dso.shortname, value=unsafe_string(dso.shortname))
135135
return lib_handle
136136
end
137137

@@ -144,5 +144,6 @@ function replace_musl_shortname(lib_handle::Ptr{Cvoid})
144144
new_shortname = basename(lib_path)
145145
push!(manual_gc_roots, new_shortname)
146146
unsafe_store!(Ptr{Ptr{UInt8}}(lib_handle + shortname_offset), pointer(new_shortname))
147+
@debug("musl workaround successful", shortname=new_shortname)
147148
return lib_handle
148149
end

0 commit comments

Comments
 (0)