client: Fix lines going beyond 80 columns 27/204927/1
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 1 Mar 2018 09:11:17 +0000 (11:11 +0200)
committerAmit Purwar <amit.purwar@samsung.com>
Fri, 26 Apr 2019 10:28:58 +0000 (15:58 +0530)
Change-Id: I31dfc94aa5314362a7d5b18aeb8ecb4ebbe11a71
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
client/advertising.c
client/gatt.c

index 0b8ce57..51aecd6 100644 (file)
@@ -430,7 +430,8 @@ static void unregister_reply(DBusMessage *message, void *user_data)
                bt_shell_printf("Advertising object unregistered\n");
                if (g_dbus_unregister_interface(conn, AD_PATH,
                                                        AD_IFACE) == FALSE)
-                       bt_shell_printf("Failed to unregister advertising object\n");
+                       bt_shell_printf("Failed to unregister advertising"
+                                       " object\n");
                return bt_shell_noninteractive_quit(EXIT_SUCCESS);
        } else {
                bt_shell_printf("Failed to unregister advertisement: %s\n",
index 91cfb01..8c818d8 100755 (executable)
@@ -636,7 +636,8 @@ static void write_attribute(GDBusProxy *proxy, char *arg)
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
 
-       bt_shell_printf("Attempting to write %s\n", g_dbus_proxy_get_path(proxy));
+       bt_shell_printf("Attempting to write %s\n",
+                                       g_dbus_proxy_get_path(proxy));
 }
 
 void gatt_write_attribute(GDBusProxy *proxy, const char *arg)
@@ -750,7 +751,8 @@ static void acquire_write_reply(DBusMessage *message, void *user_data)
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
 
-       bt_shell_printf("AcquireWrite success: fd %d MTU %u\n", fd, write_io.mtu);
+       bt_shell_printf("AcquireWrite success: fd %d MTU %u\n", fd,
+                                                               write_io.mtu);
 
        write_io.io = pipe_io_new(fd, NULL);
        return bt_shell_noninteractive_quit(EXIT_SUCCESS);
@@ -776,8 +778,9 @@ void gatt_acquire_write(GDBusProxy *proxy, const char *arg)
 
        iface = g_dbus_proxy_get_interface(proxy);
        if (strcmp(iface, "org.bluez.GattCharacteristic1")) {
-               bt_shell_printf("Unable to acquire write: %s not a characteristic\n",
-                                               g_dbus_proxy_get_path(proxy));
+               bt_shell_printf("Unable to acquire write: %s not a"
+                               " characteristic\n",
+                               g_dbus_proxy_get_path(proxy));
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
 
@@ -830,7 +833,8 @@ static void acquire_notify_reply(DBusMessage *message, void *user_data)
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
 
-       bt_shell_printf("AcquireNotify success: fd %d MTU %u\n", fd, notify_io.mtu);
+       bt_shell_printf("AcquireNotify success: fd %d MTU %u\n", fd,
+                                                               notify_io.mtu);
 
        notify_io.io = pipe_io_new(fd, NULL);
 
@@ -843,8 +847,9 @@ void gatt_acquire_notify(GDBusProxy *proxy, const char *arg)
 
        iface = g_dbus_proxy_get_interface(proxy);
        if (strcmp(iface, "org.bluez.GattCharacteristic1")) {
-               bt_shell_printf("Unable to acquire notify: %s not a characteristic\n",
-                                               g_dbus_proxy_get_path(proxy));
+               bt_shell_printf("Unable to acquire notify: %s not a"
+                               " characteristic\n",
+                               g_dbus_proxy_get_path(proxy));
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
 
@@ -899,7 +904,8 @@ static void notify_attribute(GDBusProxy *proxy, bool enable)
 
        if (g_dbus_proxy_method_call(proxy, method, NULL, notify_reply,
                                GUINT_TO_POINTER(enable), NULL) == FALSE) {
-               bt_shell_printf("Failed to %s notify\n", enable ? "start" : "stop");
+               bt_shell_printf("Failed to %s notify\n",
+                               enable ? "start" : "stop");
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
 
@@ -946,7 +952,8 @@ static void register_app_reply(DBusMessage *message, void *user_data)
        dbus_error_init(&error);
 
        if (dbus_set_error_from_message(&error, message) == TRUE) {
-               bt_shell_printf("Failed to register application: %s\n", error.name);
+               bt_shell_printf("Failed to register application: %s\n",
+                               error.name);
                dbus_error_free(&error);
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }
@@ -1031,7 +1038,8 @@ void gatt_register_app(DBusConnection *conn, GDBusProxy *proxy,
                                                PROFILE_INTERFACE, methods,
                                                NULL, properties, NULL,
                                                NULL) == FALSE) {
-                       bt_shell_printf("Failed to register application object\n");
+                       bt_shell_printf("Failed to register application"
+                                       " object\n");
                        return bt_shell_noninteractive_quit(EXIT_FAILURE);
                }
        }
@@ -1054,7 +1062,8 @@ static void unregister_app_reply(DBusMessage *message, void *user_data)
        dbus_error_init(&error);
 
        if (dbus_set_error_from_message(&error, message) == TRUE) {
-               bt_shell_printf("Failed to unregister application: %s\n", error.name);
+               bt_shell_printf("Failed to unregister application: %s\n",
+                               error.name);
                dbus_error_free(&error);
                return bt_shell_noninteractive_quit(EXIT_FAILURE);
        }