Return-Path: From: Till Harbaum To: References: <50BF37ECE4954A4BA18C08D0C2CF88CB2364EC@exmail1.se.axis.com> In-Reply-To: <50BF37ECE4954A4BA18C08D0C2CF88CB2364EC@exmail1.se.axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200408261844.20194.harbaum@beecon.de> Subject: [Bluez-devel] Little Hexdump-Patch for hcidump Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Thu, 26 Aug 2004 18:44:20 +0200 Hi all, in every new release of hcidump i have been replacing the built-in hexdump routine with my own one (giving the address and ascii as well). Perhaps you want to use this replacement in hcidump/parser/parser.c The hex output is very useful for me and e.g. just being able to see ascii strings inside rfcomm payload is something i really often need. Feel free to include it into the public version if you like to ... Regards, Till void hex_dump(int level, struct frame *frm, int num) { unsigned char *buf = frm->ptr; register int i,n,b2c; if ((num < 0) || (num > frm->len)) num = frm->len; n = 0; while(num>0) { p_indent(level, frm); printf("%04x: ", n); b2c = (num>16)?16:num; for(i=0;i