hal-debug: replace some more libtriple shortcuts

Origin commit data
------------------
Branch: master
Commit: c0ef8d6752
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-12-26 (Wed, 26 Dec 2018)

Origin message was:
------------------
- hal-debug: replace some more libtriple shortcuts

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-12-26 22:35:28 +01:00
parent a0673bfc85
commit 19993bf436

View File

@@ -27,7 +27,7 @@ static const char* hal_facility[] = {
void _hal_info(int facility, const void *func, const char *fmt, ...) void _hal_info(int facility, const void *func, const char *fmt, ...)
{ {
/* %p does print "(nil)" instead of 0x00000000 for NULL */ /* %p does print "(nil)" instead of 0x00000000 for NULL */
fprintf(stderr, "[LT:%08lx:%s] ", (long) func, hal_facility[facility]); fprintf(stderr, "[HAL:%08lx:%s] ", (long) func, hal_facility[facility]);
va_list args; va_list args;
va_start(args, fmt); va_start(args, fmt);
vfprintf(stderr, fmt, args); vfprintf(stderr, fmt, args);
@@ -43,7 +43,7 @@ void _hal_debug(int facility, const void *func, const char *fmt, ...)
if (! ((1 << facility) & debuglevel)) if (! ((1 << facility) & debuglevel))
return; return;
fprintf(stderr, "[LT:%08lx:%s] ", (long)func, hal_facility[facility]); fprintf(stderr, "[HAL:%08lx:%s] ", (long)func, hal_facility[facility]);
va_list args; va_list args;
va_start(args, fmt); va_start(args, fmt);
vfprintf(stderr, fmt, args); vfprintf(stderr, fmt, args);