aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc/logging
diff options
context:
space:
mode:
authorLuca Muscariello <lumuscar+fdio@cisco.com>2019-01-24 16:32:25 +0000
committerGerrit Code Review <gerrit@fd.io>2019-01-24 16:32:25 +0000
commit9fc2b9ec49c54ec2d5f0164bbedc1c78732c464c (patch)
treec7ebcf4c83b5c2f71318bc69c6f6915aaac7ae2a /libparc/parc/logging
parentcada1143501a48effc483e3873596c22849926b5 (diff)
parent097e69e6daeefc84fd271babbdc1b47dfe4c01e5 (diff)
Merge "Add support for ubuntu18.04 packages."
Diffstat (limited to 'libparc/parc/logging')
-rwxr-xr-xlibparc/parc/logging/parc_Log.c6
-rw-r--r--libparc/parc/logging/parc_LogEntry.c4
-rwxr-xr-xlibparc/parc/logging/parc_LogManager.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/libparc/parc/logging/parc_Log.c b/libparc/parc/logging/parc_Log.c
index e3948c36..4aa2a679 100755
--- a/libparc/parc/logging/parc_Log.c
+++ b/libparc/parc/logging/parc_Log.c
@@ -20,7 +20,7 @@
#include <stdio.h>
#include <sys/time.h>
-#include <LongBow/runtime.h>
+#include <parc/assert/parc_Assert.h>
#include <parc/algol/parc_Object.h>
#include <parc/algol/parc_Memory.h>
@@ -67,7 +67,7 @@ parcLog_Create(const char *hostName, const char *applicationName, const char *pr
PARCLog *result = parcObject_CreateInstance(PARCLog);
if (result == NULL) {
- trapOutOfMemory("Creating an instance of PARCLog.");
+ parcTrapOutOfMemory("Creating an instance of PARCLog.");
}
result->hostName = parcMemory_StringDuplicate(hostName, strlen(hostName));
@@ -103,7 +103,7 @@ _parcLog_CreateEntry(PARCLog *log, PARCLogLevel level, uint64_t messageId, const
{
char *cString;
int nwritten = vasprintf(&cString, format, ap);
- assertTrue(nwritten >= 0, "Error calling vasprintf");
+ parcAssertTrue(nwritten >= 0, "Error calling vasprintf");
struct timeval timeStamp;
gettimeofday(&timeStamp, NULL);
diff --git a/libparc/parc/logging/parc_LogEntry.c b/libparc/parc/logging/parc_LogEntry.c
index f84e3719..994efbf1 100644
--- a/libparc/parc/logging/parc_LogEntry.c
+++ b/libparc/parc/logging/parc_LogEntry.c
@@ -17,7 +17,7 @@
*/
#include <config.h>
-#include <LongBow/runtime.h>
+#include <parc/assert/parc_Assert.h>
#include <inttypes.h>
#include <stdarg.h>
@@ -89,7 +89,7 @@ parcLogEntry_Create(PARCLogLevel level,
{
PARCLogEntry *result = parcObject_CreateInstance(PARCLogEntry);
if (result == NULL) {
- trapOutOfMemory("Creating an instance of PARCLogEntry.");
+ parcTrapOutOfMemory("Creating an instance of PARCLogEntry.");
}
result->version = _parcLog_Version;
result->timeStamp = timeStamp;
diff --git a/libparc/parc/logging/parc_LogManager.c b/libparc/parc/logging/parc_LogManager.c
index 28f24d07..939ab90d 100755
--- a/libparc/parc/logging/parc_LogManager.c
+++ b/libparc/parc/logging/parc_LogManager.c
@@ -17,7 +17,7 @@
*/
#include <config.h>
-#include <LongBow/runtime.h>
+#include <parc/assert/parc_Assert.h>
#include <parc/algol/parc_Object.h>
#include <parc/algol/parc_Memory.h>