Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4715812ybc; Tue, 26 Nov 2019 13:29:02 -0800 (PST) X-Google-Smtp-Source: APXvYqw+/E2RQeSo+NepPej3Otivi4VcWN+uyJPtKR3pkdjBVcXIcaQkOUVB8a/n0LwBGzTLAvTv X-Received: by 2002:a05:6402:78e:: with SMTP id d14mr27575628edy.210.1574803741875; Tue, 26 Nov 2019 13:29:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574803741; cv=none; d=google.com; s=arc-20160816; b=tivyQGR4Kfx6puZnToQC3UgQGiltbmevqtDsQf8oeiitvHfONPyXF57kc1yThN83rn VqODSVowDh5qASItPBYGJ8F/bkcuIOO5m6aQkLBkf76dASo1iQLJcvgukCpWvKUGRswe fZZQLoN4/KwSKWqmNOHj7Oke6xsKRQGdmobR7nKJK4Ik9PLH5WIKHSnMTJFwUs87sonY spxYDSiYVXixuCOCB/E39VnDhq+B2C1Gpqt2E3yablWLYUw1/ZCpxRZ8Tp22TkqL1I2D 6Vo+KlgNcheZiAmAcdgtNIFrL4n+/V5gFvfhdNJUvssdYD7ZLtf4cJT++Io0O/9A5arH b5tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature; bh=KwJ+s+xplYsNpGLUA409T+uPqrLU+gDVqRboFsrlUws=; b=fm8dKWSgg4Dd5wBk9wnbUUGrihiUWmNv4ZeEW+xEbBOhbdX5Wpx4Lo7XjX3Nhfk88G AcZuX+URuZWCJmEhSBDC80Xv6ATWHBSLU5n36kkkWuzlVyLqvO5xwSLypbBMBXszucBv TR61nrNfz680vGuUffE8h4cdZS6jjf69rYLggVOqaHokUpcIW4nwN9gkTqsbLsS5w4aI eOF9CPWEwxh8X91Mu6Wo4qY1EwEXzux4hdb7ROM9/Izd/ahJ2wRbTZ4VGymhDTjlqWYQ nep5lOZvPPDGA+v+a+7bqngX3V14caRDFhspLmT/o78qp7EASShGIoejS1qjI51h/9TG jPDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=antHw51r; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qw22si8102718ejb.360.2019.11.26.13.28.24; Tue, 26 Nov 2019 13:29:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=antHw51r; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726036AbfKZV2R (ORCPT + 99 others); Tue, 26 Nov 2019 16:28:17 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34124 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbfKZV2R (ORCPT ); Tue, 26 Nov 2019 16:28:17 -0500 Received: by mail-wm1-f65.google.com with SMTP id j18so3364067wmk.1 for ; Tue, 26 Nov 2019 13:28:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=KwJ+s+xplYsNpGLUA409T+uPqrLU+gDVqRboFsrlUws=; b=antHw51rHtAwN8y9qw4AnJSoujiavy9XHd/CLYWnXmP3ogMhmxXq1GIctefD0cBzAl VvaiuLDAdoOPOlPENEDYuVPOOq/nGKw+Vm0QkdWCQ3FyTiqisykS2ccAOdVfLwEdRNBK f80oHKj3ReZsEWr3Hef3aVj1FMIsp2WzFGkenGSpAo46VVXt5JHfPCT/BTFdGtVWiOMc WPsOmV+OACL6PwAQlNfZgW2yz/Pa3JXyOtLIoAhtrFeI7N4os0vDHu3FmCAbdyZrNlIj bzS6+jIMVuN/LkHBNZBDxs5NwisnAMrQlY38mb36BXjZN7VNMWDtxMPo0yzbLnwoQWgw Xa6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=KwJ+s+xplYsNpGLUA409T+uPqrLU+gDVqRboFsrlUws=; b=SeYXZMyHJ5KgzLVLSBmLbAX0Wn8bUuFXGg1320U2VMOP7o+gQolF6h5ItQKHJB7h20 mj/Jhp1o0RupOiWbKyZfabe70zKRy+FXigl39oMhulY9Hv01ZIySmFGVtMrQboFRP6IZ 3SLMXCCtEo4XQ15GgEWfgR/00zNIxV3Lf+zOrevnUuwjYc+Y8fLz3eROL8yJ+1KBQwOJ 8rhrSpRmI6NiQGcggs3aDlI73QFnPe4RfErejsUb0tJS8z2tNur6KvUte1sXRr3Kwv26 zsl5u6wjOBxNysl5LND7cnYVqSqNEu3fInVhuZJMdAcX5na9+T3KUZ0TmwykH1eb5h+Z f32g== X-Gm-Message-State: APjAAAWKVji/09pGXs3Cg0cF8YIIR9TBF/haRo3ddM146D+i6H3vCugn kcU+rCKYzgSNxdW3gfbwzoQyQA1i X-Received: by 2002:a1c:b1d4:: with SMTP id a203mr957953wmf.160.1574803693376; Tue, 26 Nov 2019 13:28:13 -0800 (PST) Received: from localhost.localdomain (ip-89-103-160-142.net.upcbroadband.cz. [89.103.160.142]) by smtp.gmail.com with ESMTPSA id z2sm2395732wmf.47.2019.11.26.13.28.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2019 13:28:12 -0800 (PST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH] avctp: Set more descriptive name for uinput device Date: Tue, 26 Nov 2019 22:27:53 +0100 Message-Id: <20191126212753.18455-1-pali.rohar@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --- profiles/audio/avctp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 70a3e40b2..ae53587ad 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1181,8 +1181,7 @@ static int uinput_create(char *name) } memset(&dev, 0, sizeof(dev)); - if (name) - strncpy(dev.name, name, UINPUT_MAX_NAME_SIZE - 1); + snprintf(dev.name, sizeof(dev.name), "Bluetooth Audio/Video Remote Control%s%s", name ? " " : "", name ? name : ""); dev.id.bustype = BUS_BLUETOOTH; dev.id.vendor = 0x0000; -- 2.11.0