Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
The union still contains all the types, but we can only print the ones which are linked in. This makes it much easier to use type_to_string in different binaries without pulling in the world. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
It's not just useful for logging. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>