From owner-svn-src-all@FreeBSD.ORG Sat Nov 27 15:41:45 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C6D8106566C; Sat, 27 Nov 2010 15:41:45 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1ADBB8FC08; Sat, 27 Nov 2010 15:41:45 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oARFfiJb070245; Sat, 27 Nov 2010 15:41:44 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oARFfikt070243; Sat, 27 Nov 2010 15:41:44 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201011271541.oARFfikt070243@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 27 Nov 2010 15:41:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r215942 - head/sys/crypto/aesni X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Nov 2010 15:41:45 -0000 Author: kib Date: Sat Nov 27 15:41:44 2010 New Revision: 215942 URL: http://svn.freebsd.org/changeset/base/215942 Log: Remove DEBUG sections. MFC after: 3 days Modified: head/sys/crypto/aesni/aesni_wrap.c Modified: head/sys/crypto/aesni/aesni_wrap.c ============================================================================== --- head/sys/crypto/aesni/aesni_wrap.c Sat Nov 27 13:53:21 2010 (r215941) +++ head/sys/crypto/aesni/aesni_wrap.c Sat Nov 27 15:41:44 2010 (r215942) @@ -37,22 +37,6 @@ __FBSDID("$FreeBSD$"); MALLOC_DECLARE(M_AESNI); -#ifdef DEBUG -static void -ps_len(const char *string, const uint8_t *data, int length) -{ - int i; - - printf("%-12s[0x", string); - for(i = 0; i < length; i++) { - if (i % AES_BLOCK_LEN == 0 && i > 0) - printf("+"); - printf("%02x", data[i]); - } - printf("]\n"); -} -#endif - void aesni_encrypt_cbc(int rounds, const void *key_schedule, size_t len, const uint8_t *from, uint8_t *to, const uint8_t iv[AES_BLOCK_LEN]) @@ -60,11 +44,6 @@ aesni_encrypt_cbc(int rounds, const void const uint8_t *ivp; size_t i; -#ifdef DEBUG - ps_len("AES CBC encrypt iv:", iv, AES_BLOCK_LEN); - ps_len("from:", from, len); -#endif - len /= AES_BLOCK_LEN; ivp = iv; for (i = 0; i < len; i++) { @@ -73,9 +52,6 @@ aesni_encrypt_cbc(int rounds, const void from += AES_BLOCK_LEN; to += AES_BLOCK_LEN; } -#ifdef DEBUG - ps_len("to:", to - len * AES_BLOCK_LEN, len * AES_BLOCK_LEN); -#endif } void