[PATCH btbridge v2 3/3] Follow dbus naming convention for dbus signal

OpenBMC Patches patches at stwcx.xyz
Fri Oct 30 14:44:55 AEDT 2015


From: Cyril Bur <cyril.bur at au1.ibm.com>

---
 btbridged.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/btbridged.c b/btbridged.c
index 932355a..25bd9ac 100644
--- a/btbridged.c
+++ b/btbridged.c
@@ -293,7 +293,7 @@ static int method_send_message(sd_bus_message *msg, void *userdata, sd_bus_error
 		r = -EINVAL;
 		goto out;
 	}
-	MSG_OUT("Recieved a dbus response for msg with seq 0x%02x\n", seq);
+	MSG_OUT("Received a dbus response for msg with seq 0x%02x\n", seq);
 	bt_msg->call = sd_bus_message_ref(msg);
 	bt_msg->rsp.netfn = netfn;
 	bt_msg->rsp.lun = lun;
@@ -509,7 +509,7 @@ static int dispatch_bt(struct btbridged_context *context)
 		MSG_OUT("Sending dbus signal with netfn 0x%02x, lun 0x%02x, seq 0x%02x, cmd 0x%02x\n",
 				new->req.netfn, new->req.lun, new->req.seq, new->req.cmd);
 		/* Note we only actually keep the request data in the queue when debugging */
-		r = sd_bus_emit_signal(context->bus, OBJ_NAME, DBUS_NAME, "receivedMessage", "yyyyay",
+		r = sd_bus_emit_signal(context->bus, OBJ_NAME, DBUS_NAME, "ReceivedMessage", "yyyyay",
 				               new->req.netfn, new->req.lun, new->req.seq, new->req.cmd,
 				               new->req.data_len, data+4);
 		if (r < 0) {
@@ -553,7 +553,7 @@ static const sd_bus_vtable ipmid_vtable[] = {
 	SD_BUS_VTABLE_START(0),
 	SD_BUS_METHOD("sendMessage", "yyyyyay", "x", &method_send_message, SD_BUS_VTABLE_UNPRIVILEGED),
 	SD_BUS_METHOD("setAttention", "", "x", &method_send_sms_atn, SD_BUS_VTABLE_UNPRIVILEGED),
-	SD_BUS_SIGNAL("receivedMessage", "yyyyay", 0),
+	SD_BUS_SIGNAL("ReceivedMessage", "yyyyay", 0),
 	SD_BUS_VTABLE_END
 };
 
-- 
2.6.0




More information about the openbmc mailing list