Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang
host_triple
host_triple-0.1.0-logger.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File host_triple-0.1.0-logger.patch of Package host_triple
diff -Ndurp host_triple-0.1.0/include/code_loading.hrl host_triple-0.1.0-logger/include/code_loading.hrl --- host_triple-0.1.0/include/code_loading.hrl 2020-02-11 14:37:32.000000000 +0200 +++ host_triple-0.1.0-logger/include/code_loading.hrl 2024-05-11 07:44:26.834333615 +0300 @@ -1,3 +1,12 @@ +-ifdef(OTP_RELEASE). +-if(?OTP_RELEASE >= 21). +-inclide_lib("kernel/include/logger.hrl"). +-endif. +-endif. +-ifndef(LOG_DEBUG). +-define(LOG_DEBUG(F, A), error_logger:info_msg(F, A)). +-endif. + -define(load_nif_from_host_triple_dir(App, Lib, LoadInfo), case host_triple:native_lib_dirs(App) of {error, bad_name} -> @@ -11,7 +20,7 @@ (_, ok) -> ok; (Dir, _) -> - logger:debug( + ?LOG_DEBUG( "~s: Trying to load \"~s\" from \"~s\"", [App, Lib, Dir]), Ret = erlang:load_nif( @@ -19,11 +28,11 @@ LoadInfo), case Ret of ok -> - logger:debug( + ?LOG_DEBUG( "~s: Loaded \"~s\" successfully from \"~s\"", [App, Lib, Dir]); _ -> - logger:debug( + ?LOG_DEBUG( "~s: Couldn't load \"~s\" from \"~s\":~n~p", [App, Lib, Dir, Ret]) end,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor