From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21448 invoked by alias); 1 Oct 2013 09:01:36 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 21436 invoked by uid 89); 1 Oct 2013 09:01:35 -0000 Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 01 Oct 2013 09:01:35 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: sam.nabble.com Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VQvpj-0002oy-Tz for ecos-discuss@ecos.sourceware.org; Tue, 01 Oct 2013 02:01:31 -0700 Date: Tue, 01 Oct 2013 09:01:00 -0000 From: Daniel Zebralla To: ecos-discuss@ecos.sourceware.org Message-ID: <1380618091882-245807.post@n7.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [ECOS] Typo in assert error message causing confusion? X-SW-Source: 2013-10/txt/msg00000.txt.bz2 >From /host/infra/cyg_ass.h as well as /host/infra/cyg/infra/cyg_ass.h: # define CYG_CHECK_DATA_PTRC( _ptr_ ) \ CYG_MACRO_START \ if ( !cyg_check_data_ptr((void *)(_ptr_))) \ CYG_ASSERT_DOCALL("data pointer (" #_ptr_ ") is valid");\ CYG_MACRO_END # define CYG_CHECK_FUNC_PTRC( _ptr_ ) \ CYG_MACRO_START \ if ( !cyg_check_func_ptr((void (*)(void))(_ptr_))) \ CYG_ASSERT_DOCALL("function pointer (" #_ptr_ ") is valid"); \ CYG_MACRO_END As I understand, CYG_ASSERT_DOCALL is triggered when the checked data or function pointer is invalid. The printed message however indicates that the checked pointer is valid. Is this an error or am I misunderstanding the usage of CYG_ASSERT_DOCALL here? Thanks for clarification! -- View this message in context: http://sourceware-org.1504.n7.nabble.com/Typo-in-assert-error-message-causing-confusion-tp245807.html Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss