]> git.sur5r.net Git - openocd/commit
Test the incoming debug_level, rather than the current.
authorAlan Bowman <alan.michael.bowman@gmail.com>
Wed, 25 Jul 2012 18:58:11 +0000 (19:58 +0100)
committerØyvind Harboe <oyvindharboe@gmail.com>
Fri, 27 Jul 2012 09:50:34 +0000 (09:50 +0000)
commit8cf671ea7be52096a629f08bd59492275bd3dcfb
tree7c3c8ca8e5e952afc6a79cf1ccb14cadae068746
parent10fd274cfe5447fec8a4b8d3757787d086952deb
Test the incoming debug_level, rather than the current.

The existing code tests the current debug_level for validity, allowing
the user to set it too high and never change it after that.  The new
behaviour is to test the debug_level that the user has requested.

Change-Id: I85726a2e606c8d137e9b1cfe76fee865084844b1
Signed-off-by: Alan Bowman <alan.michael.bowman@gmail.com>
Reviewed-on: http://openocd.zylin.com/764
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
src/helper/log.c