<blockquote>
<pre><code>* The expansion of macro %{getmem:virt}" finishes with an error. It is because getmem returns 0. This is caused by the fact that function getmem_virt returns SIZE_MAX. After dividing by 1024^2 it is still to high to fit into return_type of getmem (unsigned int).
</code></pre>
</blockquote>
<p>Right. I probably only tested this in 32bit context where its more relevant. There might be more similar issues lurking (it's only an RFC for a reason)</p>
<blockquote>
<pre><code>* If there is a wrong parameter after '%{getmem:' , then no warning or error is emitted
</code></pre>
</blockquote>
<p>Yeah, known. Missing/wrong arguments to built-in macros are wildly inconsistent in how they behave, some emit errors, some just fail silently etc.</p>
<blockquote>
<pre><code>* Why you use a new type of built-in macro synatx %{getmem:} instead of something close to the existing built-in macros like %getmem_avail?
</code></pre>
</blockquote>
<p>It's not a new syntax, it's a built-in with an argument like several others. I don't see a point of adding multiple macros that all return different aspects of the same thing, that's what a parameter is for. Purely a matter of style of course.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/821?email_source=notifications&email_token=ADLPZU67ZSMLVVCKDGMBZJTQHD4JJA5CNFSM4IOUPT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RKL6Y#issuecomment-526558715">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU4H4OA6R523E6SOXY3QHD4JJANCNFSM4IOUPT4A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU5YRKLX2PH3HCE2W4DQHD4JJA5CNFSM4IOUPT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RKL6Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/821?email_source=notifications\u0026email_token=ADLPZU67ZSMLVVCKDGMBZJTQHD4JJA5CNFSM4IOUPT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RKL6Y#issuecomment-526558715",
"url": "https://github.com/rpm-software-management/rpm/pull/821?email_source=notifications\u0026email_token=ADLPZU67ZSMLVVCKDGMBZJTQHD4JJA5CNFSM4IOUPT4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RKL6Y#issuecomment-526558715",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>