Skip to content
Snippets Groups Projects
  1. Feb 23, 2023
  2. Jan 24, 2023
  3. Jan 04, 2023
  4. Aug 01, 2022
  5. Jul 18, 2022
  6. Jun 08, 2022
    • Peter Maydell's avatar
      Fix 'writeable' typos · 9323e79f
      Peter Maydell authored
      
      We have about 30 instances of the typo/variant spelling 'writeable',
      and over 500 of the more common 'writable'.  Standardize on the
      latter.
      
      Change produced with:
      
        sed -i -e 's/\([Ww][Rr][Ii][Tt]\)[Ee]\([Aa][Bb][Ll][Ee]\)/\1\2/g' $(git grep -il writeable)
      
      and then hand-undoing the instance in linux-headers/linux/kvm.h.
      
      Most of these changes are in comments or documentation; the
      exceptions are:
       * a local variable in accel/hvf/hvf-accel-ops.c
       * a local variable in accel/kvm/kvm-all.c
       * the PMCR_WRITABLE_MASK macro in target/arm/internals.h
       * the EPT_VIOLATION_GPA_WRITABLE macro in target/i386/hvf/vmcs.h
         (which is never used anywhere)
       * the AR_TYPE_WRITABLE_MASK macro in target/i386/hvf/vmx.h
         (which is never used anywhere)
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
      Message-id: 20220505095015.2714666-1-peter.maydell@linaro.org
      9323e79f
  7. Jun 06, 2022
  8. Apr 21, 2022
  9. Mar 22, 2022
    • John Snow's avatar
      python/utils: add VerboseProcessError · 062fd1da
      John Snow authored
      
      This adds an Exception that extends the Python stdlib
      subprocess.CalledProcessError.
      
      The difference is that the str() method of this exception also adds the
      stdout/stderr logs. In effect, if this exception goes unhandled, Python
      will print the output in a visually distinct wrapper to the terminal so
      that it's easy to spot in a sea of traceback information.
      
      Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Reviewed-by: default avatarHanna Reitz <hreitz@redhat.com>
      Message-Id: <20220321201618.903471-3-jsnow@redhat.com>
      Signed-off-by: default avatarHanna Reitz <hreitz@redhat.com>
      062fd1da
    • John Snow's avatar
      python/utils: add add_visual_margin() text decoration utility · be73231b
      John Snow authored
      
      >>> print(add_visual_margin(msg, width=72, name="Commit Message"))
      ┏━ Commit Message ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
      ┃ add_visual_margin() takes a chunk of text and wraps it in a visual
      ┃ container that force-wraps to a specified width. An optional title
      ┃ label may be given, and any of the individual glyphs used to draw the
      ┃ box may be replaced or specified as well.
      ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
      
      Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Acked-by: default avatarHanna Reitz <hreitz@redhat.com>
      Message-Id: <20220321201618.903471-2-jsnow@redhat.com>
      Signed-off-by: default avatarHanna Reitz <hreitz@redhat.com>
      be73231b
  10. Mar 07, 2022
Loading