diff options
author | Stefan Vacek <stefan.vacek@intel.com> | 2015-12-01 09:49:57 +0100 |
---|---|---|
committer | Lutz Helwing <lutz_helwing@mentor.com> | 2015-12-08 10:03:45 +0100 |
commit | 4251a7db0b2a576316a2a5435b72a709fd6101b0 (patch) | |
tree | 24bf28cdd0fc2ae3507694de3282cf3cfd69a655 /src/lib/dlt_user.c | |
parent | 98ab520a0d3a36f4a7cfa081742f5aef1f411bf0 (diff) | |
download | DLT-daemon-4251a7db0b2a576316a2a5435b72a709fd6101b0.tar.gz |
Fix register context before application is registered
Additional:
- include sd-daemon.h if watchdog is enabled
- fix formatting for printf 64bit values
Signed-off-by: Stefan Vacek <stefan.vacek@intel.com>
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r-- | src/lib/dlt_user.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index 8e5b6a1..8a5d683 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -805,14 +805,6 @@ DltReturnValue dlt_register_context(DltContext *handle, const char *contextid, c DLT_SEM_LOCK(); - if (dlt_user.appID[0]=='\0') - { - dlt_vnlog(LOG_WARNING, DLT_USER_BUFFER_LENGTH, "No application registered while trying to register ContextID %4s!\n", contextid); - - DLT_SEM_FREE(); - return DLT_RETURN_ERROR; - } - if ((contextid == NULL) || (contextid[0] == '\0')) { DLT_SEM_FREE(); @@ -3354,7 +3346,6 @@ DltReturnValue dlt_user_log_send_log(DltContextData *log, int mtype) if (log == NULL || log->handle == NULL || - dlt_user.appID[0] == '\0' || log->handle->contextID[0] == '\0' || (mtype < DLT_TYPE_LOG) || (mtype > DLT_TYPE_CONTROL) ) @@ -4295,7 +4286,7 @@ DltReturnValue dlt_user_log_resend_buffer(void) case DLT_USER_MESSAGE_LOG: { DltExtendedHeader * extendedHeader = (DltExtendedHeader *)(dlt_user.resend_buffer+sizeof(DltUserHeader)+ - sizeof(DltStandardHeader)+sizeof(DltStandardHeaderExtra) - DLT_ID_SIZE); + sizeof(DltStandardHeader)+sizeof(DltStandardHeaderExtra)); if ((extendedHeader) != 0 && (extendedHeader->apid[0]=='\0')) { // if application id is empty, add it dlt_set_id(extendedHeader->apid,dlt_user.appID); |