1. 13 2月, 2015 2 次提交
  2. 14 10月, 2014 2 次提交
  3. 07 8月, 2014 1 次提交
  4. 01 5月, 2013 1 次提交
  5. 30 5月, 2012 1 次提交
  6. 08 3月, 2012 1 次提交
  7. 24 10月, 2008 1 次提交
    • H
      [SCSI] lib: string_get_size(): don't hang on zero; no decimals on exact · a8659597
      H. Peter Anvin 提交于
      We would hang forever when passing a zero to string_get_size().
      Furthermore, string_get_size() would produce decimals on a value small
      enough to be exact.  Finally, a few formatting issues are inconsistent
      with standard SI style guidelines.
      
      - If the value is less than the divisor, skip the entire rounding
        step.  This prints out all small values including zero as integers,
        without decimals.
      - Add a space between the value and the symbol for the unit,
        consistent with standard SI practice.
      - Lower case k in kB since we are talking about powers of 10.
      - Finally, change "int" to "unsigned int" in one place to shut up a
        gcc warning when compiling the code out-of-kernel for testing.
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      a8659597
  8. 04 10月, 2008 1 次提交