<html>#2816: Trigger: Incorrect format statement
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Erik Schnetter</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>

<p>I see this compiler warning:</p>
<div class="codehilite language-c"><pre><span></span><code><span class="o">/</span><span class="n">__w</span><span class="o">/</span><span class="n">CarpetX</span><span class="o">/</span><span class="n">workspace</span><span class="o">/</span><span class="n">Cactus</span><span class="o">/</span><span class="n">arrangements</span><span class="o">/</span><span class="n">CactusUtils</span><span class="o">/</span><span class="n">Trigger</span><span class="o">/</span><span class="n">src</span><span class="o">/</span><span class="n">trigger</span><span class="p">.</span><span class="nl">c</span><span class="p">:</span><span class="mi">558</span><span class="o">:</span><span class="mi">75</span><span class="o">:</span> <span class="nl">warning</span><span class="p">:</span> <span class="n">more</span> <span class="sc">'%'</span> <span class="n">conversions</span> <span class="n">than</span> <span class="n">data</span> <span class="n">arguments</span> <span class="p">[</span><span class="o">-</span><span class="n">Wformat</span><span class="o">-</span><span class="n">insufficient</span><span class="o">-</span><span class="n">args</span><span class="p">]</span>
  <span class="mi">558</span> <span class="o">|</span>           <span class="n">CCTK_VERROR</span><span class="p">(</span><span class="s">"%s parsing variable with the name '%s' in trigger %d: %d"</span><span class="p">,</span>
      <span class="o">|</span>                                                                          <span class="o">~^</span>
</code></pre></div>

<p>‌</p>
<p>This points to a real error, potentially leading to a segfault when this statement is executed.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2816/trigger-incorrect-format-statement'>https://bitbucket.org/einsteintoolkit/tickets/issues/2816/trigger-incorrect-format-statement</a></p>
</html>