Fix: bad logical check of error codes

Fixes #701

Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: remove useless assert

Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: string format with unsigned value

Signed-off-by: David Goulet <dgoulet@efficios.com>