@@ -238,7 +238,7 @@ void stse_certificate_print_parsed_cert(stse_certificate_t *stse_certificate) {
238238 //printf("Fields: %08X\n", stse_certificate->fields);
239239 //printFields(stse_certificate->fields);
240240
241- printf ("\n\r\t x509 Version: %" PRId32 , stse_certificate -> x509Version + 1 );
241+ printf ("\n\r\t x509 Version: %" PRIu32 , stse_certificate -> x509Version + 1 );
242242 if (stse_certificate -> serialNumber != NULL && stse_certificate -> serialNumberSize > 0 )
243243 print_buffer ("\n\r\tSerialNumber: " , stse_certificate -> serialNumber , stse_certificate -> serialNumberSize );
244244 if (stse_certificate -> issuer != NULL && stse_certificate -> issuerSize > 0 ) {
@@ -323,8 +323,8 @@ void stse_certificate_print_validity(const PLAT_UI8 *validity) {
323323 const PLAT_UI8 * next ;
324324 stse_certificate_parse_validity (validity , & notBefore_st , & notAfter_st , & next );
325325 printf ("\n\r\t Validity:" );
326- printf ("\n\r\t\t Not Before: %04" PRId32 "-%02d-%02d %02d:%02d:%02d" , notBefore_st .year , notBefore_st .month , notBefore_st .days , notBefore_st .hours , notBefore_st .minutes , notBefore_st .seconds );
327- printf ("\n\r\t\t Not After: %04" PRId32 "-%02d-%02d %02d:%02d:%02d" , notAfter_st .year , notAfter_st .month , notAfter_st .days , notAfter_st .hours , notAfter_st .minutes , notAfter_st .seconds );
326+ printf ("\n\r\t\t Not Before: %04" PRIu32 "-%02d-%02d %02d:%02d:%02d" , notBefore_st .year , notBefore_st .month , notBefore_st .days , notBefore_st .hours , notBefore_st .minutes , notBefore_st .seconds );
327+ printf ("\n\r\t\t Not After: %04" PRIu32 "-%02d-%02d %02d:%02d:%02d" , notAfter_st .year , notAfter_st .month , notAfter_st .days , notAfter_st .hours , notAfter_st .minutes , notAfter_st .seconds );
328328}
329329
330330static void printExtensions (PLAT_UI32 extensionsFlags ) {
@@ -340,7 +340,7 @@ static void printExtensions(PLAT_UI32 extensionsFlags) {
340340 printf ("Not a CA certificate. " );
341341 }
342342 if (((extensionsFlags >> 3 ) & 1 ) == 1 ) {
343- printf ("PathSize: %" PRId32 , (extensionsFlags >> 4 ) & 15 );
343+ printf ("PathSize: %" PRIu32 , (extensionsFlags >> 4 ) & 15 );
344344 }
345345 }
346346 if (((extensionsFlags >> 8 ) & 1 ) == 1 ) {
0 commit comments