Skip to content

Commit

Permalink
changed logWarn to logWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
0815Creeper committed Oct 17, 2023
1 parent 666ed9a commit c20ad49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/FMI2/ext.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ end
function dlsym_opt(libHandle, symbol)
addr = dlsym(libHandle, symbol; throw_error=false)
if addr == nothing
logWarn(fmu, "This FMU does not support function '$symbol'.")
logWarning(fmu, "This FMU does not support function '$symbol'.")
addr = Ptr{Cvoid}(C_NULL)
end
addr
Expand Down Expand Up @@ -454,7 +454,7 @@ function fmi2Instantiate!(fmu::FMU2;
end

if !isnothing(component)
logWarn(fmu, "fmi2Instantiate!(...): This component was already registered. This may be because you created the FMU by yourself with FMIExport.jl.")
logWarning(fmu, "fmi2Instantiate!(...): This component was already registered. This may be because you created the FMU by yourself with FMIExport.jl.")
else
component = FMU2Component(compAddr, fmu)

Expand Down
2 changes: 1 addition & 1 deletion src/FMI2/sens.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function (fmu::FMU2)(;dx::AbstractVector{<:Real}=Vector{fmi2Real}(),
if hasCurrentComponent(fmu)
c = getCurrentComponent(fmu)
else
logWarn(fmu, "No FMU2Component found. Allocating one.")
logWarning(fmu, "No FMU2Component found. Allocating one.")
c = fmi2Instantiate!(fmu)
fmi2EnterInitializationMode(c)
fmi2ExitInitializationMode(c)
Expand Down

0 comments on commit c20ad49

Please sign in to comment.