9 Commits
Author SHA1 Message Date
Yegor Yefremov 4875817f19 Tests: fix -Wformat compiler warning
Use G_GUINT64_FORMAT to properly format a guint64 type.
2021-09-17 12:10:31 +02:00
Aleksander Morgado 145bbb4010 test,lsudev: add attribute format to println()
../test/lsudev.c: In function ‘println’:
  ../test/lsudev.c:68:5: warning: function ‘println’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
     68 |     g_string_append_vprintf (output, fmt, args);
        |     ^~~~~~~~~~~~~~~~~~~~~~~
2021-09-07 10:55:43 +00:00
Aleksander Morgado 6f433074e2 test,lsudev: fix warnings with -Wsign-compare
lsudev.c: In function ‘println’:
  lsudev.c:64:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
     64 |     for (i = 0; i < indent; i++)
        |                   ^
2020-01-31 15:18:35 +01:00
Ben Chan bf54159e93 test: untabify 2019-07-31 22:27:45 -07:00
Ben Chan 31655bb5a5 glib: remove invocations of g_type_init()
g_type_init() has been deprecated (and also marked with the attribute
'deprecated') since glib 2.36 as the type system is automatically
initialized. Since the minimum version of glib required by ModemManager
is 2.36, calling g_type_init() isn't necessarily in the ModemManager
code.
2017-02-03 10:05:14 +01:00
Aleksander Morgado c52762ea67 build: require gudev >= 147
Since udev 147 the gudev API is no longer marked as experimental, and therefore
`G_UDEV_API_IS_SUBJECT_TO_CHANGE' is no longer needed.
2012-03-16 14:53:25 +01:00
Dan Williams c96e736700 test: fix lsudev crash 2010-04-09 19:03:03 -07:00
Dan Williams 87ee623923 test: fix build warning 2009-12-20 00:16:45 -08:00
Dan Williams 1fe9150f5c test: add lsudev.c since I don't know where else to put it
A helpful little tool to debug udev device relationships.
2009-11-17 15:24:52 -08:00