Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2309353pxp; Mon, 21 Mar 2022 16:33:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh1rIR7rbfDc0GT9ntf5vLXlD4fvE1jPaZCKvaO0dRRHbi4OFP1xSPWPd75cRLA73NVQTl X-Received: by 2002:a63:185c:0:b0:381:10:2843 with SMTP id 28-20020a63185c000000b0038100102843mr19514999pgy.433.1647905589829; Mon, 21 Mar 2022 16:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647905589; cv=none; d=google.com; s=arc-20160816; b=QNwmfXrLwVB7g292KOgBR5YcQx36QDN5YEro7YS/xYvGTN/R3n+HnJ7coDY6L85GhZ fgUu010AEQSkJUUlB+CtpT22PFLvifkCQ6IDyQ82hME3yIxILV0bNSHjooZAccCFhZOj kQfZiLF+kH7nmQTclgoXcwwJV60wxAX2JOlsCX5580KoEkaPPANxcd19svj/Fsj3HiiC AC/PRxeKtRS50+mxbsTMxCfO8SqchCgyzK8d/Kaf4QlPbETrq4sMZBxSXB9KRcgV9Q6f 6kW3zvey/1AeB17qvHGqsXOilF9rI2PFK+cnWEHkC15a7qMEM101wo2ZIHLEmO+jL73a bfTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=/j7e/CWw6oRrnkQVp/KphTi81K+8ZW6pXdZNgewlKz0=; b=TlDon6R56rxBS0ToU+5iH0V9dJ8zLtxhJA0Hh5YZjWRx15ZSrz574OQb2KK8b2oSZ2 4w+vXDoKvobMAWyqXYYCO26zmuRDVbB8nLI0aOpa1OVar+UjazkXtrEmkfxZDHGrSY6h nGFvS4YpI6fek83Ay/aVjtN9PG37D72yrQ2Uyoq6z/R9NfrGvH2a0aA8lOMnG8V68UTB 9ITthyENEEqUsEJVBMhpAWCSDBFYg4hqP2zSgyOhq2Sk2RpgxQm5BQZLg2W9Nv2xuekf l8l61jPkoit39getbswjKJgNiNpfFfQmQT1kvnWloufgkBYh3R2xCIjbjBLTihXbGyuG i26g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GULFgGAr; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nv18-20020a17090b1b5200b001c218be3cf0si610495pjb.158.2022.03.21.16.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GULFgGAr; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F218393DF2; Mon, 21 Mar 2022 15:23:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbiCUU46 (ORCPT + 99 others); Mon, 21 Mar 2022 16:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbiCUU46 (ORCPT ); Mon, 21 Mar 2022 16:56:58 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B04219613C for ; Mon, 21 Mar 2022 13:55:32 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id z6so8643473iot.0 for ; Mon, 21 Mar 2022 13:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=/j7e/CWw6oRrnkQVp/KphTi81K+8ZW6pXdZNgewlKz0=; b=GULFgGArGAX/tNzrRBW2+JTVXj8ug7wz/dVp3tGy4R6cm2mLBhhnCWM80RXF9OZBQy sYL1KCaQyLHoC3Tfov6/s8b/lPqIv61tM24ueNEEB3XSpVSyJ99hstHxTg9W98e2BvOT Jr2AfXbm+4/ZPzsX8se/SqhWgJQWfsg2yvWvF1pDsnhfo+6CLvg2Jn4tXlgTPbl8DEEJ wH+5IYNnJZOfLx5TkcF5X40kehEksJzA8MoCxh507CJzdtLbdEA/bSYg33WljNZvGJxJ nuyw2pMJtz3aucuxEMFJhaP6wKx8to9cBc8o70jpt9ev9GD9f8r5a6I6NE/ij2FF8lXj ALEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=/j7e/CWw6oRrnkQVp/KphTi81K+8ZW6pXdZNgewlKz0=; b=1awgxzCSOexuU1Nv5mIyUqvMduj2ugZnkaAuh02ueId/K0WeluezhOsHRq9jx+2RFL 7t0tybcwkK48Uhm0YETvUOWEVL0FfBz5Zx6pks4qPNYJUkgeSeljKhT6f0u5HmpmaFaI Qe+yTvsjtI7BLmWQ0WF0B4llpEyGbDgfFoipY8FaycpHlya9840ntvq/udknjZ4epk3W 29YygwkPpNVPOOiHJoz8Th87JoyTXV8iekz11TUPxG/4wmZ8RYD7DU+UZIsAA0vFGybu Fi8Zd4+4ztiKDYo+Jzh9p0JS83Gt6bqWqI03c2oD+GWx7ZRV3CmQJmbg3eRhljyv0Bi4 nULQ== X-Gm-Message-State: AOAM5336B3rR9oOKM+1QpF5YjFIAm++P/8Ok9kk9Cs3kFmK7gUIo7wO8 XZoa4OD0eShN7r+GhBwEDsedmZeag5U= X-Received: by 2002:a05:6602:20d2:b0:641:23b1:b306 with SMTP id 18-20020a05660220d200b0064123b1b306mr10663290ioz.117.1647896131282; Mon, 21 Mar 2022 13:55:31 -0700 (PDT) Received: from lvondent-mobl4.intel.com (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id q4-20020a056e0215c400b002c5fdff3087sm10962223ilu.29.2022.03.21.13.55.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 13:55:30 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 1/5] att: Log file and function names Date: Mon, 21 Mar 2022 13:55:25 -0700 Message-Id: <20220321205529.2469387-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This adds logging of file and function names. --- src/shared/att.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shared/att.c b/src/shared/att.c index 169f726e4..7344b0c46 100644 --- a/src/shared/att.c +++ b/src/shared/att.c @@ -308,10 +308,12 @@ static void att_log(struct bt_att *att, uint8_t level, const char *format, } #define att_debug(_att, _format, _arg...) \ - att_log(_att, BT_ATT_DEBUG, _format, ## _arg) + att_log(_att, BT_ATT_DEBUG, "%s:%s() " _format, __FILE__, __func__,\ + ## _arg) #define att_verbose(_att, _format, _arg...) \ - att_log(_att, BT_ATT_DEBUG_VERBOSE, _format, ## _arg) + att_log(_att, BT_ATT_DEBUG_VERBOSE, "%s:%s() " _format, __FILE__, \ + __func__, ## _arg) static void att_hexdump(struct bt_att *att, char dir, const void *data, size_t len) -- 2.35.1