update printf flags to eliminate compiler warnings

Change-Id: Ic38c9fd088dc5572667494cd29c91d5a0d5b0e89
fixed parameter order to memset() in testring.cpp

Change-Id: Iec8c9b291a14273a38f5b916feeeef50fbb9d6d8