port: use correct enum to string conversion when logging
CC mm-port.lo
mm-port.c: In function 'log_object_build_id':
mm-port.c:117:60: error: implicit conversion from 'MMPortType' to 'MMModemPortType' [-Werror=enum-conversion]
117 | mm_modem_port_type_get_string (mm_port_get_port_type (self)));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ log_object_build_id (MMLogObject *_self)
|
||||
self = MM_PORT (_self);
|
||||
return g_strdup_printf ("%s/%s",
|
||||
mm_port_get_device (self),
|
||||
mm_modem_port_type_get_string (mm_port_get_port_type (self)));
|
||||
mm_port_type_get_string (mm_port_get_port_type (self)));
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user