xen/console: debugtrace: Compute the buffer length is O(1) rather O(n)
authorJulien Grall <julien.grall@arm.com>
Wed, 21 Aug 2019 21:19:17 +0000 (22:19 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 21 Aug 2019 21:19:17 +0000 (22:19 +0100)
commita1dc65aaf470fa01f394e01ab6747d135961a0ae
tree39cc00d9a9f5677eda7db49f7fe336c135ff147f
parente0bf98394ee06b9f365684269b1de091c31d8d9c
xen/console: debugtrace: Compute the buffer length is O(1) rather O(n)

This was meant to be part of commit e0bf98394e "xen/console: Fix build
when CONFIG_DEBUG_TRACE" but not addressed before been committed.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/char/console.c