5acbb8f Avoid getting '-1:-1' in devices cgroup list

Authored and Committed by cbosdonnat 9 years ago
    Avoid getting '-1:-1' in devices cgroup list
    
    When calling virCgroupAllowAllDevices we get these invalid entries
    in the device cgroup config.
        b -1:-1 rw
        c -1:-1 rw
    Check for positive values before outputting the major and minor to
    avoid that.
    
        
file modified
+2 -2