Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85370 - Code Listing 11 of the Eclass HOWTO could have an example of debug-print-function
Summary: Code Listing 11 of the Eclass HOWTO could have an example of debug-print-func...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-developer
Classification: Unclassified
Component: Eclass HOWTO (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Community Relations Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 09:34 UTC by Petteri Räty (RETIRED)
Modified: 2005-03-15 11:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.