changeset 242:5b82c52de3c7

8133681: Incorrect SPIPermission security name formatting: using decimal insted of hexadecimal Summary: Fix int-to-string conversion Reviewed-by: snazarki Contributed-by: alexey.savin@oracle.com
author snazarki
date Mon, 17 Aug 2015 16:00:50 +0300
parents 93bbb462fa84
children 0820986e0688
files src/share/classes/com/oracle/dio/spibus/impl/SPISlaveImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/oracle/dio/spibus/impl/SPISlaveImpl.java	Fri Aug 14 20:23:37 2015 +0300
+++ b/src/share/classes/com/oracle/dio/spibus/impl/SPISlaveImpl.java	Mon Aug 17 16:00:50 2015 +0300
@@ -104,7 +104,7 @@
     private String getSecurityName(){
         SPIDeviceConfig cfg = dscr.getConfiguration();
         String securityName = (DeviceConfig.DEFAULT == cfg.getControllerNumber()) ? "" : String.valueOf(cfg.getControllerNumber());
-        securityName = (DeviceConfig.DEFAULT == cfg.getAddress()) ? securityName : securityName + ":" + cfg.getAddress();
+        securityName = (DeviceConfig.DEFAULT == cfg.getAddress()) ? securityName : securityName + ":" + Integer.toString(cfg.getAddress(), 16);
         return securityName;
     }