--- xscreensaver.pl 2003-11-18 11:36:44.000000000 +0100 +++ xscreensaver.pl.new 2003-11-18 11:36:50.000000000 +0100 @@ -49,19 +49,19 @@ int dev_id; dev_id = hci_get_route(&bdaddr); if (dev_id < 0) { - printf("Device not available\n"); + printf("Device not available\\n"); return (newSVpvf("")); } dd = hci_open_dev(dev_id); if (dd < 0) { - printf("HCI device open failed\n"); + printf("HCI device open failed\\n"); return (newSVpvf("")); } if (hci_read_remote_name(dd, &bdaddr, sizeof(name), name,25000) != 0) { close(dd); - printf("Could not find device %s\n",address); + printf("Could not find device %s\\n",address); return (newSVpvf("")); } @@ -114,19 +114,19 @@ cc = 1; } if (dev_id < 0) { - printf("Device not available\n"); + printf("Device not available\\n"); return (newSVpvf("")); } dd = hci_open_dev(dev_id); if (dd < 0) { - printf("Cannot open device\n"); + printf("Cannot open device\\n"); return (newSVpvf("")); } if (cc) { if (hci_create_connection(dd, &bdaddr, 0x0008 | 0x0010, 0, 0, &handle, 25000) < 0) { - printf("Cannot create connection\n"); + printf("Cannot create connection\\n"); close(dd); return (newSVpvf("")); } @@ -134,14 +134,14 @@ cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info)); if (!cr) { - printf("Could not allocate memory\n"); + printf("Could not allocate memory\\n"); return (newSVpvf("")); } bacpy(&cr->bdaddr, &bdaddr); cr->type = ACL_LINK; if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) { - printf("Get connection info failed\n"); + printf("Get connection info failed\\n"); return (newSVpvf("")); } @@ -154,12 +154,12 @@ rq.rlen = READ_RSSI_RP_SIZE; if (hci_send_req(dd, &rq, 100) < 0) { - printf("Read RSSI failed\n"); + printf("Read RSSI failed\\n"); return (newSVpvf("")); } if (rp.status) { - printf("Read RSSI returned (error) status 0x%2.2X\n", rp.status); + printf("Read RSSI returned (error) status 0x%2.2X\\n", rp.status); return (newSVpvf("")); } @@ -189,7 +189,7 @@ $|++; -printf("Monitoring RSSI for device %s (%s)\n",$mac,devname($mac)); +printf("Monitoring RSSI for device %s (%s)\\n",$mac,devname($mac)); RSSI_CHECK: while (1) { # Trim the stack while (scalar @rssi_stack >= $rssi_linger) {