Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8076194rwr; Wed, 10 May 2023 17:41:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yfcyiAscVMIG9B/5tTFpBkcghFYVRQyk1evruqMIAdbgMEc1wNVaFhB56lcD09eUkqFsB X-Received: by 2002:a05:6a00:1312:b0:648:774d:3cd0 with SMTP id j18-20020a056a00131200b00648774d3cd0mr4158573pfu.14.1683765715870; Wed, 10 May 2023 17:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683765715; cv=none; d=google.com; s=arc-20160816; b=BsheSdAVYsYRYGi8EqMArATOMpNqyFl0+bnxnjuk53lEL8FXKo+TXFS1btbLYmt2Mw HzDB1BhfiianYWh4EJuPrqopLGgvqGkORWHvQzEy9qfIsULk9E+5IHMzi+JKEQUEzkJP uxvCgMMHCnoy2V92FI0WIqB+j0sOweEo8glqFmYpKJZIJjzobbplxZyfQJB3LgStuDW7 vQkefNZT5P/e0JcKn31itHGbSnexiL5OJyIVikiiQSqBcweHs8Hn6XtZHfngqjy2EWfI uvGQpmvfgnF0xa5UHNPZYAG2Qm79gAfVK/AJjm8k+iNffPw2/XwxrLUYqRZqxCgIxrco ynYA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=02JKLSHG1vLTKTxUUXs3wGXxxpnoDhEqlqorGsnIBik=; b=R0N+/PUoPyQZEp8N+b95hvWCs1womwdOhGQTmXuptUHzVKtVeQhlrHWIZ/zWtYrO0b S4UbnbLk86Ojl4zblzxwn9ffeqGJZXmQXMoC6kDHXtXr1KPpCK/xc+6rMACtxEqzeMNg /GuAG7xGtXviaJJVWFyLoGsQ7l2Bg2qR0qfJF7TwxIVV579RTdm6xyxZ0AeYkPMXRBbY tmsPNOzLXNreJYCpayIFR/COgbAOtyilQCFBiwUb+bM51BekQuvpY8g7lr2oWwcozT1w e4IhQImyoFIkP5EOpM8GyTBnj8kdCwQ4yZphqH/4kWf//coTNGuB0ov0xMXAjvNtnZlI VWpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ayaya.dev header.s=key1 header.b=KDzLr76U; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ayaya.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020aa79789000000b006467de1cbc8si6216711pfp.226.2023.05.10.17.41.43; Wed, 10 May 2023 17:41:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ayaya.dev header.s=key1 header.b=KDzLr76U; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ayaya.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235540AbjEKAah (ORCPT + 99 others); Wed, 10 May 2023 20:30:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233254AbjEKAag (ORCPT ); Wed, 10 May 2023 20:30:36 -0400 Received: from out-14.mta1.migadu.com (out-14.mta1.migadu.com [95.215.58.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0540E10DD for ; Wed, 10 May 2023 17:30:34 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1683764594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=02JKLSHG1vLTKTxUUXs3wGXxxpnoDhEqlqorGsnIBik=; b=KDzLr76UwfQSVneItCVn9XmpqwXrFeJPvMW+KJM7R18+4VMM3HZt7FOXhPlDAs6hAzxLrj 1AbVSyGtQGX3nZv2NxWA9dMKyjqlObdT4yUqdMXdb4ssEgrX9DbljxVlmAGbgrpelM88vx fJLiCaQcdHEh9+fUy1VmoZ34uAKqKBk= From: psykose To: linux-bluetooth@vger.kernel.org Cc: alice@ayaya.dev Subject: [PATCH BlueZ 3/3] tools/parser: use long long for time_t print Date: Thu, 11 May 2023 02:22:52 +0200 Message-Id: <20230511002252.30868-3-alice@ayaya.dev> In-Reply-To: <20230511002252.30868-1-alice@ayaya.dev> References: <20230511002252.30868-1-alice@ayaya.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 %lld is guarantted to be a 64-bit int, which we enforce via -D_TIME_BITS=64. Signed-off-by: psykose --- tools/parser/parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/parser/parser.h b/tools/parser/parser.h index 5f65f1689..1eda4f290 100644 --- a/tools/parser/parser.h +++ b/tools/parser/parser.h @@ -120,11 +120,11 @@ static inline void p_indent(int level, struct frame *f) struct tm tm; time_t t = f->ts.tv_sec; localtime_r(&t, &tm); - printf("%04d-%02d-%02d %02d:%02d:%02d.%06lu ", + printf("%04d-%02d-%02d %02d:%02d:%02d.%06llu ", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, f->ts.tv_usec); } else - printf("%8lu.%06lu ", f->ts.tv_sec, f->ts.tv_usec); + printf("%8lu.%06llu ", f->ts.tv_sec, f->ts.tv_usec); } printf("%c ", (f->in ? '>' : '<')); parser.state = 1; -- 2.40.1