Skip to content
Snippets Groups Projects
Commit 194838a4 authored by clohr's avatar clohr
Browse files

Affiche les erreurs de version xAAL

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/C/trunk@1349 b32b6428-25c9-4566-ad07-03861ab6144f
parent 8c168643
No related branches found
No related tags found
No related merge requests found
......@@ -267,15 +267,17 @@ bool xAAL_read_bus(const xAAL_businfo_t *bus,
*timestamp = json_object_get_int(jtimestamp);
/* filter relevance */
if ( !*version || strcmp(*version, xAAL_VERSION) )
if ( !*version || strcmp(*version, xAAL_VERSION) ) {
if (xAAL_error_log) fprintf(xAAL_error_log, "Unexpected 'version' in xAAL header\n");
r = false;
}
if ( !*source || (strlen(*source) != 36) ) /* Size of an uuid */
r = false;
if ( r == false ) {
if (xAAL_error_log)
fprintf(xAAL_error_log, "Source: %s\nMessage:\n%.*s\n", *ip, *nread, buf);
fprintf(xAAL_error_log, "Source: %s\nMessage:\n%.*s\n\n", *ip, *nread, buf);
json_object_put(*jmsg);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment