mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	programs: ssl: Fix printf parameter type cast
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
		@@ -3580,7 +3580,7 @@ exit:
 | 
				
			|||||||
            ( opt.query_config_mode == DFL_QUERY_CONFIG_MODE ) )
 | 
					            ( opt.query_config_mode == DFL_QUERY_CONFIG_MODE ) )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            mbedtls_printf( "Failed to destroy key slot %u - error was %d",
 | 
					            mbedtls_printf( "Failed to destroy key slot %u - error was %d",
 | 
				
			||||||
                            (int) slot, (int) status );
 | 
					                            (unsigned) slot, (int) status );
 | 
				
			||||||
            if( ret == 0 )
 | 
					            if( ret == 0 )
 | 
				
			||||||
                ret = MBEDTLS_ERR_SSL_HW_ACCEL_FAILED;
 | 
					                ret = MBEDTLS_ERR_SSL_HW_ACCEL_FAILED;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4521,7 +4521,7 @@ exit:
 | 
				
			|||||||
            ( opt.query_config_mode == DFL_QUERY_CONFIG_MODE ) )
 | 
					            ( opt.query_config_mode == DFL_QUERY_CONFIG_MODE ) )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            mbedtls_printf( "Failed to destroy key slot %u - error was %d",
 | 
					            mbedtls_printf( "Failed to destroy key slot %u - error was %d",
 | 
				
			||||||
                            (int) psk_slot, (int) status );
 | 
					                            (unsigned) psk_slot, (int) status );
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
#endif /* MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED &&
 | 
					#endif /* MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED &&
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user