Cleanup: use correct format strings with String.format() 95/53495/3
authorStephen Kitt <skitt@redhat.com>
Fri, 17 Mar 2017 17:15:59 +0000 (18:15 +0100)
committerDavid Suarez <david.suarez.fuentes@ericsson.com>
Fri, 17 Mar 2017 22:15:09 +0000 (22:15 +0000)
String.format() expects C-style format strings, not SLF4J-style.

Change-Id: Ie10a9983a5bff0c8bd46ae0e55c8c872030e5992
Signed-off-by: Stephen Kitt <skitt@redhat.com>
itm/itm-impl/src/main/java/org/opendaylight/genius/itm/rpc/ItmManagerRpcService.java

index ea569da72231361860fcb530131ef54956f65ac6..14ec11f3ce496cca0487d035988bb774be70ad6e 100644 (file)
@@ -468,7 +468,7 @@ public class ItmManagerRpcService implements ItmRpcService {
                         }
 
                         @Override public void onFailure(Throwable error) {
-                            String msg = String.format("Unable to delete HwVtep {} from datastore", node_id);
+                            String msg = String.format("Unable to delete HwVtep %s from datastore", node_id);
                             LOG.error("Unable to delete HwVtep {}, {} from datastore", node_id, hwIp);
                             result.set(RpcResultBuilder.<Void>failed()
                                     .withError(RpcError.ErrorType.APPLICATION, msg, error).build());
@@ -546,7 +546,7 @@ public class ItmManagerRpcService implements ItmRpcService {
                         }
 
                         @Override public void onFailure(Throwable error) {
-                            String msg = String.format("Unable to write HwVtep {} to datastore", node_id);
+                            String msg = String.format("Unable to write HwVtep %s to datastore", node_id);
                             LOG.error("Unable to write HwVtep {}, {} to datastore", node_id, hwIp);
                             result.set(RpcResultBuilder.<Void>failed()
                                     .withError(RpcError.ErrorType.APPLICATION, msg, error).build());
@@ -629,7 +629,7 @@ public class ItmManagerRpcService implements ItmRpcService {
 
                     @Override
                     public void onFailure(Throwable error) {
-                        String msg = String.format("Unable to write HwVtep {} to datastore", node_id);
+                        String msg = String.format("Unable to write HwVtep %s to datastore", node_id);
                         LOG.error("Unable to write HwVtep {}, {} to datastore", node_id , hwIp);
                         result.set(RpcResultBuilder.<Void>failed().withError(RpcError.ErrorType.APPLICATION, msg, error).build());
                     }
@@ -693,7 +693,7 @@ public class ItmManagerRpcService implements ItmRpcService {
 
                     @Override
                     public void onFailure(Throwable error) {
-                        String msg = String.format("Unable to write HwVtep {} to datastore", node_id);
+                        String msg = String.format("Unable to write HwVtep %s to datastore", node_id);
                         LOG.error("Unable to write HwVtep {}, {} to datastore", node_id , hwIp);
                         result.set(RpcResultBuilder.<Void>failed().withError(RpcError.ErrorType.APPLICATION, msg, error).build());
                     }