Fixed bug in system call wrapper

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>