<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/gpio/gpio-watch.c, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-01-18T09:05:35Z</updated>
<entry>
<title>tools: gpio: fix %llu warning in gpio-watch.c</title>
<updated>2021-01-18T09:05:35Z</updated>
<author>
<name>Kent Gibson</name>
</author>
<published>2021-01-07T04:00:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1fc7c1ef37f86f207b4db40aba57084bb2f6a69a'/>
<id>urn:sha1:1fc7c1ef37f86f207b4db40aba57084bb2f6a69a</id>
<content type='text'>
Some platforms, such as mips64, don't map __u64 to long long unsigned
int so using %llu produces a warning:

gpio-watch.c: In function ‘main’:
gpio-watch.c:89:30: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘__u64’ {aka ‘long unsigned int’} [-Wformat=]
   89 |    printf("line %u: %s at %llu\n",
      |                           ~~~^
      |                              |
      |                              long long unsigned int
      |                           %lu
   90 |           chg.info.offset, event, chg.timestamp_ns);
      |                                   ~~~~~~~~~~~~~~~~
      |                                      |
      |                                      __u64 {aka long unsigned int}

Replace the %llu with PRIu64 and cast the argument to uint64_t.

Fixes: 33f0c47b8fb4 ("tools: gpio: implement gpio-watch")
Signed-off-by: Kent Gibson &lt;warthog618@gmail.com&gt;
Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
<entry>
<title>tools: gpio: port gpio-watch to v2 uAPI</title>
<updated>2020-09-30T08:57:15Z</updated>
<author>
<name>Kent Gibson</name>
</author>
<published>2020-09-28T00:28:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e86a863b337c50713b674007f74dc1854701eb93'/>
<id>urn:sha1:e86a863b337c50713b674007f74dc1854701eb93</id>
<content type='text'>
Port the gpio-watch tool to the latest GPIO uAPI.

Signed-off-by: Kent Gibson &lt;warthog618@gmail.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
<entry>
<title>tools: gpio: implement gpio-watch</title>
<updated>2020-02-12T11:05:47Z</updated>
<author>
<name>Bartosz Golaszewski</name>
</author>
<published>2019-11-27T09:17:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=33f0c47b8fb4724792b16351a32b24902a5d3b07'/>
<id>urn:sha1:33f0c47b8fb4724792b16351a32b24902a5d3b07</id>
<content type='text'>
Add a simple program that allows to test the new LINECHANGED_FD ioctl().

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
</feed>
