Commit bd5dcc60 authored by Johann Fischer's avatar Johann Fischer Committed by Benjamin Cabé
Browse files

drivers: udc: make suspend/resume logging message more precise



Make suspend/resume logging message more precise.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 0760f6fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ void udc_set_suspended(const struct device *dev, const bool value)
	struct udc_data *data = dev->data;

	if (value == udc_is_suspended(dev)) {
		LOG_WRN("Spurious suspend/resume event");
		LOG_WRN("Spurious %s event", value ? "suspend" : "resume");
	}

	atomic_set_bit_to(&data->status, UDC_STATUS_SUSPENDED, value);