#fixed code
                                private void showCpuUtilizationForAllVms(final double simulationFinishTime) {
        System.out.printf("%nHosts CPU utilization history for the entire simulation period%n%n");
        int numberOfUsageHistoryEntries = 0;
        for (Vm vm : vmlist) {
            System.out.printf("VM %d%n", vm.getId());
            if (vm.getUtilizationHistory().getHistory().isEmpty()) {
                System.out.println("\tThere isn't any usage history");
                continue;
            }

            for (Map.Entry<Double, Double> entry : vm.getUtilizationHistory().getHistory().entrySet()) {
                final double time = entry.getKey();
                final double vmCpuUsage = entry.getValue()*100;
                if (vmCpuUsage > 0) {
                    numberOfUsageHistoryEntries++;
                    System.out.printf("\tTime: %2.0f CPU Utilization: %6.2f%%%n", time, vmCpuUsage);
                }
            }
        }

        if (numberOfUsageHistoryEntries == 0) {
            System.out.println("No CPU usage history was found");
        }
    }
#vulnerable code 
                                private void showCpuUtilizationForAllVms(final double simulationFinishTime) {
        System.out.println("\nHosts CPU utilization history for the entire simulation period\n");
        int numberOfUsageHistoryEntries = 0;
        for (Vm vm : vmlist) {
            System.out.printf("VM %d\n", vm.getId());
            if (vm.getUtilizationHistory().getHistory().isEmpty()) {
                System.out.println("\tThere isn't any usage history");
                continue;
            }

            for (Map.Entry<Double, Double> entry : vm.getUtilizationHistory().getHistory().entrySet()) {
                final double time = entry.getKey();
                final double vmCpuUsage = entry.getValue()*100;
                if (vmCpuUsage > 0) {
                    numberOfUsageHistoryEntries++;
                    System.out.printf("\tTime: %2.0f CPU Utilization: %6.2f%%\n", time, vmCpuUsage);
                }
            }
        }

        if (numberOfUsageHistoryEntries == 0) {
            System.out.println("No CPU usage history was found");
        }
    } 
                            #location 16 
                            #vulnerability type CHECKERS_PRINTF_ARGS