Print no locations message to stderr.
Improve a too generic function name.