Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85370

Summary: Code Listing 11 of the Eclass HOWTO could have an example of debug-print-function
Product: [OLD] Docs-developer Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: Eclass HOWTOAssignee: Gentoo Community Relations Team <comrel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Petteri Räty (RETIRED) gentoo-dev 2005-03-15 09:34:39 UTC
Code Listing 11: Adding debug statements

base_src_compile() {
 
    debug-print function $FUNCNAME $*
    [ -z "$1" ] && base_src_compile all
 
    while [ "$1" ]; do
--- And so on ---

From the documentation:
debug-print-function() prints 'debug: entering function $1, parameters: $2 [$3 ....] It is called at the beginning of a function.

It would be nice to have this used in the example.


Reproducible: Always
Steps to Reproduce:
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2005-03-15 11:30:22 UTC
Fixed in CVS, thanks. The change should reach the web nodes within a few hours, please reopen this bug if there are any problems.