[Click] %{element} syntax
Eddie Kohler
kohler at cs.ucla.edu
Wed Mar 10 20:51:55 EST 2010
Ah, OK.
Whatever you're doing, I would definitely do it by subclassing
ErrorHandler. Elements definitely expect the %{..} syntax to work and
you will get crashes if it is ignored.
E
On 3/10/10 5:47 PM, Ian Rose wrote:
> AH HA!
>
> My mistake - I totally forgot that (normally) click_chatter calls
> through an ErrorHandler rather than directly to vsnprintf or the like. I
> have changed my glue.cc to NOT use ErrorHandler::default_handler(),
> which is why this special syntax is not working for me.
>
> Sorry about the false alarm there!
>
> - Ian
>
>
> Eddie Kohler wrote:
>> The code that handles this case starts at error.cc:690, if you're
>> interested in single stepping.
>>
>>
>> On 3/10/10 4:54 PM, Ian Rose wrote:
>>> Hi all -
>>>
>>> In various places (such as simplequeue.cc), there are lines like this:
>>>
>>>> click_chatter("%{element}: overflow", this);
>>>
>>> I'm guessing that this is supposed to print some kind of
>>> description/representation of the element, followed by ": overflow", but
>>> on my machine (userspace click, FreeBSD 7.2-STABLE) it just prints
>>> "{element}: overflow".
>>>
>>> Does this "work" (as I am assuming its supposed to) for other people or
>>> does it print oddly for everyone?
>>>
>>> - Ian
>>> _______________________________________________
>>> click mailing list
>>> click at amsterdam.lcs.mit.edu
>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list