)]}'
{
  "commit": "aaeafa5090c8d006d7c39b4e11bcfb8515ef1ece",
  "tree": "e0075f555ac0562395b28432dc13f5d60e6e5449",
  "parents": [
    "c6f5d406e1ace1e3d7697e085024a3c7b93d6db5"
  ],
  "author": {
    "name": "Philippe Mathieu-Daudé",
    "email": "philmd@linaro.org",
    "time": "Tue Mar 12 15:13:39 2024 +0100"
  },
  "committer": {
    "name": "Markus Armbruster",
    "email": "armbru@redhat.com",
    "time": "Wed Apr 24 09:50:58 2024 +0200"
  },
  "message": "qapi: Inline QERR_INVALID_PARAMETER_TYPE definition (constant value)\n\nAddress the comment added in commit 4629ed1e98\n(\"qerror: Finally unused, clean up\"), from 2015:\n\n  /*\n   * These macros will go away, please don\u0027t use\n   * in new code, and do not add new ones!\n   */\n\nMechanical transformation using the following\ncoccinelle semantic patch:\n\n    @match@\n    expression errp;\n    expression param;\n    constant value;\n    @@\n         error_setg(errp, QERR_INVALID_PARAMETER_TYPE, param, value);\n\n    @script:python strformat depends on match@\n    value \u003c\u003c match.value;\n    fixedfmt; // new var\n    @@\n    fixedfmt \u003d f\u0027\"Invalid parameter type for \\\u0027%s\\\u0027, expected: {value[1:-1]}\"\u0027\n    coccinelle.fixedfmt \u003d cocci.make_ident(fixedfmt)\n\n    @replace@\n    expression match.errp;\n    expression match.param;\n    constant match.value;\n    identifier strformat.fixedfmt;\n    @@\n    -    error_setg(errp, QERR_INVALID_PARAMETER_TYPE, param, value);\n    +    error_setg(errp, fixedfmt, param);\n\nSigned-off-by: Philippe Mathieu-Daudé \u003cphilmd@linaro.org\u003e\nSigned-off-by: Markus Armbruster \u003carmbru@redhat.com\u003e\nMessage-ID: \u003c20240312141343.3168265-7-armbru@redhat.com\u003e\nReviewed-by: Zhao Liu \u003czhao1.liu@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3e8aca6b1594cf1a41841cbd9140d6932113cd64",
      "old_mode": 33188,
      "old_path": "qapi/qobject-input-visitor.c",
      "new_id": "f110a804b2ae0f3f75122775ddbc5ec7cc5de230",
      "new_mode": 33188,
      "new_path": "qapi/qobject-input-visitor.c"
    },
    {
      "type": "modify",
      "old_id": "197139c1c0c8740ba5a08af38f93411a420bc7c4",
      "old_mode": 33188,
      "old_path": "qapi/string-input-visitor.c",
      "new_id": "3f1b9e9b41373c89c0dbed831a5d6d7b049e83f6",
      "new_mode": 33188,
      "new_path": "qapi/string-input-visitor.c"
    },
    {
      "type": "modify",
      "old_id": "d4a001cf4117a680a0b78825340fac303e065557",
      "old_mode": 33188,
      "old_path": "qom/object.c",
      "new_id": "3d96818f7d002b5af24248b9ca3376298ac4557b",
      "new_mode": 33188,
      "new_path": "qom/object.c"
    }
  ]
}
