From owner-svn-src-head@freebsd.org Sat Apr 15 06:53:09 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A817D3F92F; Sat, 15 Apr 2017 06:53:09 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0D2BCC9; Sat, 15 Apr 2017 06:53:08 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3F6r85l081001; Sat, 15 Apr 2017 06:53:08 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3F6r7hJ081000; Sat, 15 Apr 2017 06:53:07 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201704150653.v3F6r7hJ081000@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Sat, 15 Apr 2017 06:53:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316953 - head/sbin/savecore X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 06:53:09 -0000 Author: ngie Date: Sat Apr 15 06:53:07 2017 New Revision: 316953 URL: https://svnweb.freebsd.org/changeset/base/316953 Log: Switch back to non-IEC units for 1024 bytes I was swayed a little too quickly when I saw the wiki page discussing kB vs KiB. Switch back as none of the code in base openly uses IEC units via humanize_number(3) (which was my next step), and there's a large degree of dislike with IEC vs more SI-like units. MFC after: 7 weeks Submitted by: jhb, rgrimes Sponsored by: Dell EMC Isilon Modified: head/sbin/savecore/savecore.c Modified: head/sbin/savecore/savecore.c ============================================================================== --- head/sbin/savecore/savecore.c Sat Apr 15 03:28:13 2017 (r316952) +++ head/sbin/savecore/savecore.c Sat Apr 15 06:53:07 2017 (r316953) @@ -322,7 +322,7 @@ check_space(const char *savedir, off_t d if (available < needed) { syslog(LOG_WARNING, "no dump: not enough free space on device (need at least " - "%jdKiB for dump; %jdKiB available; %jdKiB reserved)", + "%jdkB for dump; %jdkB available; %jdkB reserved)", (intmax_t)needed, (intmax_t)available + minfree, (intmax_t)minfree);